Split hash - seperate key has for bxor with value

This commit is contained in:
Martin Sumner 2018-11-09 14:51:38 +00:00
parent 4756d402a0
commit a7773b148d
2 changed files with 28 additions and 12 deletions

View file

@ -176,7 +176,8 @@
%% speed can be gained if just the segment ID is known - but more can be
%% gained should the extended hash (with the second element) is known
segment_hash(Key) when is_binary(Key) ->
{segment_hash, SegmentID, ExtraHash} = leveled_tictac:keyto_segment48(Key),
{segment_hash, SegmentID, ExtraHash, _AltHash}
= leveled_tictac:keyto_segment48(Key),
{SegmentID, ExtraHash};
segment_hash({?RIAK_TAG, Bucket, Key, null})
when is_binary(Bucket), is_binary(Key) ->