mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge pull request #39287 from david-z/wip-fix-join-fscid
mon/MDSMonitor.cc: fix join fscid not applied with pending fsmap at boot
This commit is contained in:
commit
e40a9f4caf
@ -665,7 +665,6 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
|
||||
new_info.mds_features = m->get_mds_features();
|
||||
new_info.state = MDSMap::STATE_STANDBY;
|
||||
new_info.state_seq = seq;
|
||||
pending.insert(new_info);
|
||||
if (m->get_fs().size()) {
|
||||
fs_cluster_id_t fscid = FS_CLUSTER_ID_NONE;
|
||||
auto f = pending.get_filesystem(m->get_fs());
|
||||
@ -674,6 +673,7 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
|
||||
}
|
||||
new_info.join_fscid = fscid;
|
||||
}
|
||||
pending.insert(new_info);
|
||||
}
|
||||
|
||||
// initialize the beacon timer
|
||||
|
Loading…
Reference in New Issue
Block a user