]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/FSMap: fix adjust_standby_fscid 32709/head
authorSage Weil <sage@redhat.com>
Fri, 17 Jan 2020 18:38:17 +0000 (12:38 -0600)
committerSage Weil <sage@redhat.com>
Fri, 17 Jan 2020 18:38:55 +0000 (12:38 -0600)
The _fscid entry may not exist if this is a new starting daemon, or
if the daemon previously didn't have an fs set and does now.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/FSMap.cc

index ab81c8d2ee8cb3bd137dec54ac8f8dbd44ad8fa0..61e6fd37a03295600b202649586ae006caa7f08a 100644 (file)
@@ -1054,7 +1054,7 @@ void FSMap::insert(const MDSMap::mds_info_t &new_info)
 void FSMap::adjust_standby_fscid(mds_gid_t standby_gid,
                                 fs_cluster_id_t fscid)
 {
-  standby_daemon_fscid.at(standby_gid) = fscid;
+  standby_daemon_fscid[standby_gid] = fscid;
 }
 
 std::size_t FSMap::clear_standby_fscid(mds_gid_t standby_gid)