]> 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)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Tue, 7 Jun 2016 14:43:07 +0000 (20:13 +0530)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 24b82bafffced97384135e55ab2a97091e9a7b4b)

src/mon/MDSMonitor.cc

index 9d72a0f9ad618c741b3dd8247436c023b8bd86a1..b85df62f8cc08a55fda1b07fdcfaed0755dc8c9f 100644 (file)
@@ -1472,7 +1472,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;