]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: encode stashed monmap with all features
authorJerry7X <875016668@qq.com>
Wed, 7 Jan 2015 06:29:02 +0000 (14:29 +0800)
committerSage Weil <sage@redhat.com>
Thu, 15 Jan 2015 19:13:17 +0000 (11:13 -0800)
latest_monmap that we stash is only used locally--the encoded bl is never shared. Which means we should just use CEPH_FEATURES_ALL all of the time.

Fixes: #5203
Backport: giant, firefly
Signed-off-by: Xie Rui <875016668@qq.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/Monitor.cc

index 78e2061fe6bebf4d74d09f0423ac2bd896aee1b9..2b87309a69a26e1c68a5533066edd388c2f5c2d7 100644 (file)
@@ -1054,7 +1054,7 @@ void Monitor::sync_obtain_latest_monmap(bufferlist &bl)
 
   dout(1) << __func__ << " obtained monmap e" << latest_monmap.epoch << dendl;
 
-  latest_monmap.encode(bl, quorum_features);
+  latest_monmap.encode(bl, CEPH_FEATURES_ALL);
 }
 
 void Monitor::sync_reset_requester()