Re-add usort
Change one thing at a time
This commit is contained in:
parent
6ab9f72d8c
commit
2f3eb18548
2 changed files with 2 additions and 2 deletions
|
@ -1270,7 +1270,7 @@ indexed_list_mixedkeys_test() ->
|
||||||
KVL1 = lists:sublist(KVL0, 33),
|
KVL1 = lists:sublist(KVL0, 33),
|
||||||
Keys = lists:ukeysort(1, generate_indexkeys(60) ++ KVL1),
|
Keys = lists:ukeysort(1, generate_indexkeys(60) ++ KVL1),
|
||||||
|
|
||||||
{PosBinIndex1, FullBin} = generate_binary_slot(Keys),
|
{_PosBinIndex1, FullBin} = generate_binary_slot(Keys),
|
||||||
|
|
||||||
{TestK1, TestV1} = lists:nth(4, KVL1),
|
{TestK1, TestV1} = lists:nth(4, KVL1),
|
||||||
MH1 = leveled_codec:magic_hash(TestK1),
|
MH1 = leveled_codec:magic_hash(TestK1),
|
||||||
|
|
|
@ -45,7 +45,7 @@ enter({hash, Hash}, Bloom) ->
|
||||||
fun(Bit, Arr) -> add_to_array(Bit, Arr, 1024) end,
|
fun(Bit, Arr) -> add_to_array(Bit, Arr, 1024) end,
|
||||||
SplitArray1 = lists:foldl(FoldFun,
|
SplitArray1 = lists:foldl(FoldFun,
|
||||||
SplitArray0,
|
SplitArray0,
|
||||||
[Bit1, Bit2, Bit3]),
|
lists:usort([Bit1, Bit2, Bit3])),
|
||||||
dict:store(Slot, <<Pre/binary, SplitArray1/binary, Post/binary>>, Bloom);
|
dict:store(Slot, <<Pre/binary, SplitArray1/binary, Post/binary>>, Bloom);
|
||||||
enter(Key, Bloom) ->
|
enter(Key, Bloom) ->
|
||||||
Hash = leveled_codec:magic_hash(Key),
|
Hash = leveled_codec:magic_hash(Key),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue