]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: sort bitwise on new clusters
authorSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 20:07:44 +0000 (16:07 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 20:23:46 +0000 (16:23 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 44f51888193520608f02596f61e436ef17d929df..16b3e4e334658750c2b5f324ca3b391bc2267595 100644 (file)
@@ -112,6 +112,9 @@ void OSDMonitor::create_initial()
   newmap.set_epoch(1);
   newmap.created = newmap.modified = ceph_clock_now(g_ceph_context);
 
+  // new clusters should sort bitwise by default.
+  newmap.set_flag(CEPH_OSDMAP_SORTBITWISE);
+
   // encode into pending incremental
   newmap.encode(pending_inc.fullmap, mon->quorum_features | CEPH_FEATURE_RESERVED);
   pending_inc.full_crc = newmap.get_crc();