From: Sage Weil Date: Fri, 7 Aug 2015 20:07:44 +0000 (-0400) Subject: mon/OSDMonitor: sort bitwise on new clusters X-Git-Tag: v9.1.0~346^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f02d7e7a75ed3a34439bdaa49038bf526d3cbe79;p=ceph.git mon/OSDMonitor: sort bitwise on new clusters Signed-off-by: Sage Weil --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 44f518881935..16b3e4e33465 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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();