]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Monitor: backup monmap using all ceph features instead of quorum's
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 30 May 2013 17:17:28 +0000 (18:17 +0100)
committerSage Weil <sage@inktank.com>
Thu, 30 May 2013 18:43:12 +0000 (11:43 -0700)
When a monitor is freshly created and for some reason its initial sync is
aborted, it will end up with an incorrect backup monmap.  This monmap is
incorrect in the sense that it will not contain the monitor's names as
it will expect on the next run.

This results from us being using the quorum features to encode the monmap
when backing it up, instead of CEPH_FEATURES_ALL.

Fixes: #5203
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 626de387e617db457d6d431c16327c275b0e8a34)

src/mon/Monitor.cc

index 3c40ad38085265655e7f1bb452f2ee976dcbfc3d..336f508c56a05145fc22b1fb2bbe3b6a35ac1d47 100644 (file)
@@ -1350,7 +1350,7 @@ void Monitor::sync_store_init()
       return; // this is moot
     } else {
       dout(10) << __func__ << " backup current monmap" << dendl;
-      monmap->encode(latest_monmap, get_quorum_features());
+      monmap->encode(latest_monmap, CEPH_FEATURES_ALL);
     }
   }