You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:11:10 UTC

[24/48] mem3 commit: updated refs/heads/windsor-merge to ff02b9a

Use a consistent commenting syntax


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/a29e6b75
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/a29e6b75
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/a29e6b75

Branch: refs/heads/windsor-merge
Commit: a29e6b7556862f82ce416f93ac5cf847f36a276e
Parents: 94fc763
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Mon Aug 19 09:43:08 2013 -0400
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Jul 23 18:46:26 2014 +0100

----------------------------------------------------------------------
 src/mem3_rebalance.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/a29e6b75/src/mem3_rebalance.erl
----------------------------------------------------------------------
diff --git a/src/mem3_rebalance.erl b/src/mem3_rebalance.erl
index 08605be..123bf47 100644
--- a/src/mem3_rebalance.erl
+++ b/src/mem3_rebalance.erl
@@ -23,11 +23,11 @@ rebalance(DbName) ->
 rebalance(DbName, TargetNodes) when is_binary(DbName) ->
     rebalance(mem3:shards(DbName), TargetNodes);
 rebalance(Shards, TargetNodes) when is_list(Shards) ->
-    %% first migrate shards off of non-target nodes
+    % First migrate all shards off of non-target nodes
     {OK, MoveThese} = lists:partition(fun(#shard{node=Node}) ->
         lists:member(Node, TargetNodes)
     end, Shards),
-    % ensure every target node is present in the orddict
+    % Ensure every target node is present in the orddict
     ShardsByTargetNode0 = orddict:from_list([{N,[]} || N <- TargetNodes]),
     ShardsByTargetNode = lists:foldl(fun(Shard, Acc) ->
         orddict:append(Shard#shard.node, Shard, Acc)