Add support for buckets that are tuples
Only {binary(), binary()} tuples
This commit is contained in:
parent
cbd7713c71
commit
0fb35e658f
3 changed files with 23 additions and 6 deletions
|
@ -181,7 +181,7 @@
|
|||
-type head_timings() :: no_timing|#head_timings{}.
|
||||
-type timing_types() :: head|get|put|fold.
|
||||
-type recent_aae() :: false|#recent_aae{}|undefined.
|
||||
-type key() :: binary()|string().
|
||||
-type key() :: binary()|string()|{binary(), binary()}.
|
||||
% Keys SHOULD be binary()
|
||||
% string() support is a legacy of old tests
|
||||
-type open_options() ::
|
||||
|
|
|
@ -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)}.
|
||||
|
||||
|
||||
%%%============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue