diff --git a/src/leveled_sst.erl b/src/leveled_sst.erl index 86fcd7d..6316d81 100644 --- a/src/leveled_sst.erl +++ b/src/leveled_sst.erl @@ -1270,7 +1270,7 @@ indexed_list_mixedkeys_test() -> KVL1 = lists:sublist(KVL0, 33), 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), MH1 = leveled_codec:magic_hash(TestK1), diff --git a/src/leveled_tinybloom.erl b/src/leveled_tinybloom.erl index 5e86473..9d85b9a 100644 --- a/src/leveled_tinybloom.erl +++ b/src/leveled_tinybloom.erl @@ -45,7 +45,7 @@ enter({hash, Hash}, Bloom) -> fun(Bit, Arr) -> add_to_array(Bit, Arr, 1024) end, SplitArray1 = lists:foldl(FoldFun, SplitArray0, - [Bit1, Bit2, Bit3]), + lists:usort([Bit1, Bit2, Bit3])), dict:store(Slot, <
>, Bloom); enter(Key, Bloom) -> Hash = leveled_codec:magic_hash(Key),