]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: fix wrong positive of jewel flag check
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 1 Jun 2016 03:17:32 +0000 (11:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 1 Jun 2016 03:17:32 +0000 (11:17 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MDSMonitor.cc

index bb219c19809fba95d56095ed1b8589a24fe7b4cf..b06b2ef6b984f24e554ee33002b1f99e4cb65ad4 100644 (file)
@@ -1500,7 +1500,7 @@ class FlagSetHandler : public FileSystemCommandHandler
         return r;
       }
 
-      bool jewel = mon->get_quorum_features() && CEPH_FEATURE_SERVER_JEWEL;
+      bool jewel = mon->get_quorum_features() & CEPH_FEATURE_SERVER_JEWEL;
       if (flag_bool && !jewel) {
         ss << "Multiple-filesystems are forbidden until all mons are updated";
         return -EINVAL;