Permalink
Browse files

reversed comparison logic

  • Loading branch information...
ronniedada committed Aug 27, 2013
1 parent 66d6b05 commit 10fe4878f4b7a042bd50941f2389a5dcd3fe3fa1
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbooks/couchbase/recipes/setup-2.1.1.rb
@@ -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]}" +

0 comments on commit 10fe487

Please sign in to comment.