Returning bucket when bucket is all

Need to know {Bucket, Key} not just Key if all buckets are being covered
by nrt aae.  So shoehorning this in - will also allow for proper use of
FilterFun when filtering by partition.
This commit is contained in:
martinsumner 2017-07-03 18:03:13 +01:00
parent b143ea1c08
commit 97fdd36d53
5 changed files with 70 additions and 19 deletions

View file

@ -43,6 +43,7 @@
find_journals/1,
wait_for_compaction/1,
foldkeysfun/3,
foldkeysfun_returnbucket/3,
sync_strategy/0]).
-define(RETURN_TERMS, {true, undefined}).
@ -484,6 +485,11 @@ get_randomdate() ->
foldkeysfun(_Bucket, Item, Acc) -> Acc ++ [Item].
foldkeysfun_returnbucket(Bucket, {Term, Key}, Acc) ->
Acc ++ [{Term, {Bucket, Key}}];
foldkeysfun_returnbucket(Bucket, Key, Acc) ->
Acc ++ [{Bucket, Key}].
check_indexed_objects(Book, B, KSpecL, V) ->
% Check all objects match, return what should be the results of an all
% index query