Magic Hash vs phash2

Magic Hash broke Skip List organisation
This commit is contained in:
martinsumner 2016-12-11 01:32:32 +00:00
parent ccc993383d
commit 1f38bcb328

View file

@ -57,7 +57,7 @@ enter(Key, Hash, Value, SkipList) ->
leveled_tinybloom:enter({hash, Hash}, Bloom)
end,
{Bloom0,
enter(Key, Value, Hash,
enter(Key, Value, erlang:phash2(Key),
element(2, SkipList),
?SKIP_WIDTH, ?LIST_HEIGHT)}.