Files
scylladb/utils
Glauber Costa a209a5c2cb bloom filter: go back to size for bitset
max_size, as currently used, will return -1 and while it will fix the previous
bug, it will uncover another.

We can go back to using size, as long as we make sure that all sites correctly
pick a size when creating the bitset. Aside from that, for compatibility with
the java code, the total number of bits has to be a power of two.

The best way to achieve those goals, is to just set the size ourselves through
resize() in the filter constructor. num_blocks() * bits_per_block is guaranteed
to yield a power of two as we need, and in case one caller did not explicitly
set a size, it will be set from this moment on.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
2015-05-28 17:12:39 +03:00
..
2015-04-15 22:37:28 +03:00
2015-04-01 09:43:47 +02:00
2015-05-19 11:22:41 -04:00
2015-05-19 11:22:41 -04:00
2015-01-06 17:23:46 +08:00
2015-04-15 20:33:47 +02:00
2015-04-15 20:33:47 +02:00