]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: handle get_mds_info as const
authorJohn Spray <john.spray@redhat.com>
Wed, 17 Feb 2016 15:30:39 +0000 (15:30 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 10 Mar 2016 11:18:29 +0000 (11:18 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSDaemon.cc

index 533db452825010e55db6deb163d742e4f1cd5306..293d7c81f735f8ec72910afe01788a2d5b01eade 100644 (file)
@@ -977,7 +977,7 @@ void MDSDaemon::handle_mds_map(MMDSMap *m)
       // here!
       if (g_conf->mds_enforce_unique_name) {
         if (mds_gid_t existing = mdsmap->find_mds_gid_by_name(name)) {
-          MDSMap::mds_info_t& i = mdsmap->get_info_gid(existing);
+          const MDSMap::mds_info_t& i = mdsmap->get_info_gid(existing);
           if (i.global_id > monc->get_global_id()) {
             dout(1) << "handle_mds_map i (" << addr
                     << ") dne in the mdsmap, new instance has larger gid " << i.global_id