mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
mds: use FSMap::insert to add to standby_daemons
This reduces the number of code sites which modify standby_daemons. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
3e5775475b
commit
9566ae27b3
@ -430,9 +430,7 @@ void FSMap::decode(bufferlist::iterator& p)
|
||||
p.second.rank = p.second.standby_for_rank;
|
||||
}
|
||||
if (p.second.rank == MDS_RANK_NONE) {
|
||||
standby_daemons[p.first] = p.second;
|
||||
standby_epochs[p.first] = epoch;
|
||||
mds_roles[p.first] = FS_CLUSTER_ID_NONE;
|
||||
insert(p.second); // into standby_daemons
|
||||
} else {
|
||||
mds_roles[p.first] = migrate_fs->fscid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user