mirror of https://github.com/ceph/ceph
Merge PR #60327 into main
* refs/pull/60327/head: mon/MDSMonitor: send reply to beacons with `state=DNE` Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
This commit is contained in:
commit
8ae8988275
|
@ -758,6 +758,14 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
|
|||
|
||||
if (state == MDSMap::STATE_DNE) {
|
||||
dout(1) << __func__ << ": DNE from " << info << dendl;
|
||||
|
||||
/* send a beacon reply so MDSDaemon::suicide() finishes the
|
||||
Beacon::send_and_wait() call */
|
||||
auto beacon = make_message<MMDSBeacon>(mon.monmap->fsid,
|
||||
m->get_global_id(), m->get_name(), get_fsmap().get_epoch(),
|
||||
m->get_state(), m->get_seq(), CEPH_FEATURES_SUPPORTED_DEFAULT);
|
||||
mon.send_reply(op, beacon.detach());
|
||||
|
||||
goto evict;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue