Skip to content

Commit

Permalink
Filter Typed Bucket Tombstones in riak_core_ring:get_buckets/1
Browse files Browse the repository at this point in the history
addresses basho#494
  • Loading branch information
jrwest committed Dec 29, 2013
1 parent 699324c commit f4ce355
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/riak_core_bucket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ reset_bucket(Bucket) ->
get_buckets(Ring) ->
RingNames = riak_core_ring:get_buckets(Ring),
RingBuckets = [get_bucket(Name, Ring) || Name <- RingNames],
MetadataBuckets = riak_core_metadata:fold(fun({_Key, Props}, Acc) ->
MetadataBuckets = riak_core_metadata:fold(fun({_, undefined}, Acc) ->
Acc;
({_Key, Props}, Acc) ->
[Props | Acc]
end,
[], ?METADATA_PREFIX,
[{resolver, fun riak_core_bucket_props:resolve/2}]),
[{resolver, fun riak_core_bucket_props:resolve/2},
{default, undefined}]),
RingBuckets ++ MetadataBuckets.

%% @doc returns a proplist containing all buckets and their respective N values
Expand Down

0 comments on commit f4ce355

Please sign in to comment.