From: xie xingguo Date: Wed, 1 Jun 2016 03:17:32 +0000 (+0800) Subject: mon/MDSMonitor: fix wrong positive of jewel flag check X-Git-Tag: v10.2.3~96^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4017ae915e8355f9146844a443942c0dce32476;p=ceph.git mon/MDSMonitor: fix wrong positive of jewel flag check Signed-off-by: xie xingguo (cherry picked from commit 24b82bafffced97384135e55ab2a97091e9a7b4b) --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 9d72a0f9ad6..b85df62f8cc 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -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;