Fix two bugs in the global balancing phase
authorAdam Kocoloski <adam@cloudant.com>
Wed, 30 Oct 2013 15:05:41 +0000 (11:05 -0400)
committerRobert Newson <rnewson@apache.org>
Wed, 23 Jul 2014 17:46:26 +0000 (18:46 +0100)
commit51838ca25bd44ca287676e98d2c907205300eb58
tree48833db0dddfa5df388a9b4f9640fd546ba167a8
parent0b0a7e7935d3e43f378908157a05ac2c74c7a5f5
Fix two bugs in the global balancing phase

* Nodes with 0 shards were being ignored because wrong datatype.
* The limit was being ignored because max not min.

BugzID: 24680
src/mem3_rebalance.erl