From: Greg Farnum Date: Thu, 3 Jul 2014 22:24:30 +0000 (-0700) Subject: OSDMonitor: fix quorum_features comparison in check_cluster_features X-Git-Tag: v0.83~23^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2280c0eaa9f3f733062085a5e7f7dc23c3bbe291;p=ceph.git 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 --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 16c281cc48b0..9f4dbabe0380 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; }