Skip to content

Commit

Permalink
reversed comparison logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ronniedada committed Aug 27, 2013
1 parent 66d6b05 commit 10fe487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/couchbase/recipes/setup-2.1.1.rb
Expand Up @@ -169,7 +169,7 @@
# rebalance if certain conditions been met
rebalance_count = node[:db_couchbase][:cluster][:rebalance_count]
num_nodes = known_hosts.split("\n").length
if rebalance_count.to_i > num_nodes
if num_nodes >= rebalance_count.to_i
log("rebalancing: (rebalance_count = #{rebalance_count}) > (num_nodes = #{num_nodes}")
log("/opt/couchbase/bin/couchbase-cli rebalance" +
" -u #{node[:db_couchbase][:cluster][:username]}" +
Expand Down

0 comments on commit 10fe487

Please sign in to comment.