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: v11.0.0~336^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24b82bafffced97384135e55ab2a97091e9a7b4b;p=ceph.git mon/MDSMonitor: fix wrong positive of jewel flag check Signed-off-by: xie xingguo --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index bb219c19809..b06b2ef6b98 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -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;