]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/bloom_filter: make optimal parameter calculation static
authorSage Weil <sage@inktank.com>
Wed, 18 Sep 2013 21:50:05 +0000 (14:50 -0700)
committerSage Weil <sage@inktank.com>
Wed, 25 Sep 2013 23:49:40 +0000 (16:49 -0700)
commit8dcdeb2e02ea86ceb40cbef812b33f4243838f7b
tree4c884e95c81a9f3d3cbf5ec5fb66f9aec9efe850
parenteda807e01e39522ec20f4e90af8c44e7514d8af2
common/bloom_filter: make optimal parameter calculation static

We pass the ctor our target behavior and calculate parameters based on
that.  Avoid storing the target behavior, and make that calc a static
method.  And add a new ctor that takes the parameters explicitly.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/bloom_filter.hpp