Stop donating once the target level is achieved
authorAdam Kocoloski <adam@cloudant.com>
Wed, 30 Oct 2013 15:53:22 +0000 (11:53 -0400)
committerRobert Newson <rnewson@apache.org>
Wed, 23 Jul 2014 17:46:27 +0000 (18:46 +0100)
commit5ec7d0440ea9b4c63e7b35e365380109a108b0c8
treee6bd71edcdf32da70365f64dc0f6f435a2616eee
parent51838ca25bd44ca287676e98d2c907205300eb58
Stop donating once the target level is achieved

Also switched to a record accumulator for clarity.

BugzID: 24466
src/mem3_rebalance.erl