Skip to content

Commit 05d60f0

Browse files
committed
mon/MDSMonitor: force immediate propose when evicting an MDS
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
1 parent 79ca2d6 commit 05d60f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mon/MDSMonitor.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
804804
last_beacon.erase(followergid);
805805
}
806806
request_proposal(mon.osdmon());
807+
force_immediate_propose();
807808
pending.damaged(rankgid, blocklist_epoch);
808809
last_beacon.erase(rankgid);
809810

@@ -1277,6 +1278,8 @@ bool MDSMonitor::fail_mds_gid(FSMap &fsmap, mds_gid_t gid)
12771278
utime_t until = ceph_clock_now();
12781279
until += g_conf().get_val<double>("mon_mds_blocklist_interval");
12791280
blocklist_epoch = mon.osdmon()->blocklist(info.addrs, until);
1281+
/* do not delay when we are evicting an MDS */
1282+
force_immediate_propose();
12801283
}
12811284

12821285
fsmap.erase(gid, blocklist_epoch);

0 commit comments

Comments
 (0)