From 6e0685aefd049582ed29087c099e19aefbc1f693 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Tue, 8 Nov 2016 10:57:14 -0500 Subject: [PATCH] mon: Fix bug in feature testing Since we're comparing against a bitmask, the boolean rather than bitwise operator can't be right. Signed-off-by: Adam C. Emerson --- src/mon/MDSMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index e0b8be5de1430..c511a2f80c23c 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -1533,7 +1533,7 @@ class FlagSetHandler : public FileSystemCommandHandler return r; } - bool jewel = mon->get_quorum_con_features() && CEPH_FEATURE_SERVER_JEWEL; + bool jewel = mon->get_quorum_con_features() & CEPH_FEATURE_SERVER_JEWEL; if (flag_bool && !jewel) { ss << "Multiple-filesystems are forbidden until all mons are updated"; return -EINVAL; -- 2.39.5