Skip to content

Commit

Permalink
OSDMonitor: fix quorum_features comparison in check_cluster_features
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gregsfortytwo committed Jul 3, 2014
1 parent 2226b91 commit 2280c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2280c0e

Please sign in to comment.