Skip to content

Commit 8ae8988

Browse files
committed
Merge PR ceph#60327 into main
* refs/pull/60327/head: mon/MDSMonitor: send reply to beacons with `state=DNE` Reviewed-by: Patrick Donnelly <[email protected]>
2 parents 9d2b3aa + fd9c404 commit 8ae8988

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mon/MDSMonitor.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,14 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
758758

759759
if (state == MDSMap::STATE_DNE) {
760760
dout(1) << __func__ << ": DNE from " << info << dendl;
761+
762+
/* send a beacon reply so MDSDaemon::suicide() finishes the
763+
Beacon::send_and_wait() call */
764+
auto beacon = make_message<MMDSBeacon>(mon.monmap->fsid,
765+
m->get_global_id(), m->get_name(), get_fsmap().get_epoch(),
766+
m->get_state(), m->get_seq(), CEPH_FEATURES_SUPPORTED_DEFAULT);
767+
mon.send_reply(op, beacon.detach());
768+
761769
goto evict;
762770
}
763771

0 commit comments

Comments
 (0)