From 2280c0eaa9f3f733062085a5e7f7dc23c3bbe291 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 3 Jul 2014 15:24:30 -0700 Subject: [PATCH] OSDMonitor: fix quorum_features comparison in check_cluster_features We need to see if there's a feature which is not in the quorum_features, not if there are no features in common! Signed-off-by: Greg Farnum --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 16c281cc48b04..9f4dbabe03805 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2996,7 +2996,7 @@ int OSDMonitor::check_cluster_features(uint64_t features, { stringstream unsupported_ss; int unsupported_count = 0; - if (!(mon->get_quorum_features() & features)) { + if ((mon->get_quorum_features() & features) != features) { unsupported_ss << "the monitor cluster"; ++unsupported_count; }