Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Avoid decom:true nodes when fixing zoning
This patch prevents mem3_rebalance:fix_zoning from suggesting moves
onto nodes that are flagged with "decom":true.

BugzID: 26362
  • Loading branch information
mikewallace1979 authored and rnewson committed Jul 23, 2014
1 parent e64dd02 commit fd3c7b59f2f79519b8a1f04b6931adde47aaa659
Showing 1 changed file with 1 addition and 1 deletion.
@@ -400,7 +400,7 @@ apply_shard_moves(Shards, [{copy, Shard, Node}| Rest]) ->
allowed_nodes(Fun) ->
lists:filter(fun(Node) ->
Fun(mem3:node_info(Node, <<"zone">>))
end, mem3:nodes()).
end, surviving_nodes()).

surviving_nodes() ->
lists:filter(fun(Node) ->

0 comments on commit fd3c7b5

Please sign in to comment.