Change FoldBucketsFun to take just bucket
FoldBucketsFun does not take keys should be a 2-arity function (Bucket, Acc).
This commit is contained in:
parent
acdc702e7d
commit
51dbad95c0
2 changed files with 4 additions and 4 deletions
|
@ -448,7 +448,7 @@ bucket_stats(State, Bucket, Tag) ->
|
|||
{async, Folder}.
|
||||
|
||||
|
||||
binary_bucketlist(State, Tag, {FoldKeysFun, InitAcc}) ->
|
||||
binary_bucketlist(State, Tag, {FoldBucketsFun, InitAcc}) ->
|
||||
% List buckets for tag, assuming bucket names are all binary type
|
||||
{ok,
|
||||
{LedgerSnapshot, LedgerCache},
|
||||
|
@ -462,7 +462,7 @@ binary_bucketlist(State, Tag, {FoldKeysFun, InitAcc}) ->
|
|||
LedgerSnapshot,
|
||||
[]),
|
||||
ok = leveled_penciller:pcl_close(LedgerSnapshot),
|
||||
lists:foldl(fun({B, K}, Acc) -> FoldKeysFun(B, K, Acc) end,
|
||||
lists:foldl(fun({B, _K}, Acc) -> FoldBucketsFun(B, Acc) end,
|
||||
InitAcc,
|
||||
BucketAcc)
|
||||
end,
|
||||
|
|
|
@ -113,7 +113,7 @@ small_load_with2i(_Config) ->
|
|||
Total2 = Sum2(),
|
||||
true = Total2 == Total1,
|
||||
|
||||
FoldBucketsFun = fun(B, _K, Acc) -> sets:add_element(B, Acc) end,
|
||||
FoldBucketsFun = fun(B, Acc) -> sets:add_element(B, Acc) end,
|
||||
% Should not find any buckets - as there is a non-binary bucket, and no
|
||||
% binary ones
|
||||
BucketListQuery = {binary_bucketlist,
|
||||
|
@ -322,7 +322,7 @@ query_count(_Config) ->
|
|||
R9),
|
||||
testutil:check_forobject(Book4, TestObject),
|
||||
|
||||
FoldBucketsFun = fun(B, _K, Acc) -> sets:add_element(B, Acc) end,
|
||||
FoldBucketsFun = fun(B, Acc) -> sets:add_element(B, Acc) end,
|
||||
BucketListQuery = {binary_bucketlist,
|
||||
?RIAK_TAG,
|
||||
{FoldBucketsFun, sets:new()}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue