Skip to content

Commit

Permalink
Fix AAE filtering
Browse files Browse the repository at this point in the history
Fix the filtering logic which removes AAE info for indices no longer
owned by the local node.  The key is now `{Type, Index}`.
  • Loading branch information
rzezeski committed Sep 6, 2013
1 parent a55f2e0 commit 74efbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riak_kv_entropy_info.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ all_index_info() ->
filter_index_info() ->
{ok, Ring} = riak_core_ring_manager:get_my_ring(),
Primaries = riak_core_ring:my_indices(Ring),
Indices = ets:select(?ETS, [{{{index, '$1'}, '$2'}, [], ['$1']}]),
Indices = ets:select(?ETS, [{{{index, {'_', '$1'}}, '_'}, [], ['$1']}]),
Others = ordsets:subtract(ordsets:from_list(Indices),
ordsets:from_list(Primaries)),
[ets:match_delete(?ETS, {{index, {'_', Idx}}, '_'}) || Idx <- Others],
Expand Down

0 comments on commit 74efbd7

Please sign in to comment.