]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/bloom_filter: fix compress; improve argument
authorSage Weil <sage@inktank.com>
Sat, 5 Oct 2013 05:49:41 +0000 (22:49 -0700)
committerSage Weil <sage@inktank.com>
Sun, 6 Oct 2013 17:18:35 +0000 (10:18 -0700)
commitf45c3b98d3941c242d428c971b494fdc5216bd18
tree780e8bf636833289935e28f4c517155a1fd1b6e1
parent055dc4c1f22bf7751059d589c33ba5c32b009184
common/bloom_filter: fix compress; improve argument

Fix bug in compress() when compressing to less than .5 or original.

Make the argument have sane units (target size relative to current size;
not a precentage reduction).

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/bloom_filter.hpp
src/test/common/test_bloom_filter.cc