]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonMap: use legacy rank order for all bootstrap monmaps
authorSage Weil <sage@redhat.com>
Mon, 28 May 2018 18:50:07 +0000 (13:50 -0500)
committerSage Weil <sage@redhat.com>
Mon, 28 May 2018 18:50:07 +0000 (13:50 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonMap.cc

index 3cad9dea48aec85a43236e3c4f156bd2f5d3d7b2..890289cf52e79f9b378047168bb35308166efc42 100644 (file)
@@ -363,6 +363,7 @@ int MonMap::build_from_host_list(std::string hostlist, const std::string &prefix
        !contains(name))
       add(name, addrs[i]);
   }
+  calc_legacy_ranks();
   return 0;
 }
 
@@ -409,6 +410,7 @@ void MonMap::set_initial_members(CephContext *cct,
       assert(contains(*p));
     }
   }
+  calc_legacy_ranks();
 }
 
 
@@ -449,6 +451,7 @@ int MonMap::build_initial(CephContext *cct, ostream& errout)
     }
     created = ceph_clock_now();
     last_changed = created;
+    calc_legacy_ranks();
     return 0;
   }
 
@@ -547,5 +550,6 @@ int MonMap::build_initial(CephContext *cct, ostream& errout)
   }
   created = ceph_clock_now();
   last_changed = created;
+  calc_legacy_ranks();
   return 0;
 }