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:
Patrick Donnelly 2016-07-15 23:40:17 -04:00
parent 3e5775475b
commit 9566ae27b3
No known key found for this signature in database
GPG Key ID: 214CC3B002E532F6

View File

@ -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;
}