Add support for buckets that are tuples

Only {binary(), binary()} tuples
This commit is contained in:
Martin Sumner 2018-09-27 09:34:40 +01:00
parent cbd7713c71
commit 0fb35e658f
3 changed files with 23 additions and 6 deletions

View file

@ -843,7 +843,9 @@ get_metadata_from_siblings(<<ValLen:32/integer, Rest0/binary>>,
next_key(Key) when is_binary(Key) ->
<<Key/binary, 0>>;
next_key(Key) when is_list(Key) ->
Key ++ [0].
Key ++ [0];
next_key({Type, Bucket}) when is_binary(Type), is_binary(Bucket) ->
{Type, next_key(Bucket)}.
%%%============================================================================