]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix CEPH_FEATURE_SERVER_JEWEL of preprocess_boot() check 10491/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jul 2016 04:21:27 +0000 (12:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 1 Aug 2016 04:24:35 +0000 (12:24 +0800)
We shall check CEPH_FEATURE_SERVER_JEWEL carried by osd_features of
MOSDBoot message, as it will be properly filled by every OSD during
OSD::_send_boot() process.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc

index f303db3863d7b5004f43735c21ecf0375c1ce1f0..436fb1846dba7479daf9c4293ad78d39d16a19bd 100644 (file)
@@ -1978,7 +1978,7 @@ bool OSDMonitor::preprocess_boot(MonOpRequestRef op)
   }
 
   if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_JEWEL) &&
-      !(m->get_connection()->get_features() & CEPH_FEATURE_SERVER_JEWEL)) {
+      !(m->osd_features & CEPH_FEATURE_SERVER_JEWEL)) {
     mon->clog->info() << "disallowing boot of OSD "
                      << m->get_orig_source_inst()
                      << " because the osdmap requires"