From 0c3a92bb999e90212a9f38f9f4dc3bf89bd20acb Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 1 Jun 2016 14:28:17 +0800 Subject: [PATCH] mon/MDSMonitor: fix wrongly set expiration time of blacklist Signed-off-by: xie xingguo --- src/mon/MDSMonitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 7a7dfd3d102b9..53cdec0d08e78 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -613,7 +613,8 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op) dout(4) << __func__ << ": marking rank " << info.rank << " damaged" << dendl; - const utime_t until = ceph_clock_now(g_ceph_context); + utime_t until = ceph_clock_now(g_ceph_context); + until += g_conf->mds_blacklist_interval; const auto blacklist_epoch = mon->osdmon()->blacklist(info.addr, until); request_proposal(mon->osdmon()); pending_fsmap.damaged(gid, blacklist_epoch); -- 2.39.5