static_cast<BloomHitSet::Params*>(params.impl.get());
dout(20) << __func__ << " " << params << " " << p << dendl;
+ if (p->false_positive <= 0.0)
+ p->false_positive = .01; // fpp cannot be zero!
+
// convert false positive rate so it holds up across the full period
p->false_positive = p->false_positive / pool.info.hit_set_count;
p->seed = now.sec();
dout(10) << __func__ << " target_size " << p->target_size
- << " fpp " << p->false_positive << dendl;
+ << " fpp " << p->false_positive << dendl;
}
hit_set.reset(new HitSet(params));
hit_set_start_stats.reset(new pg_stat_t(info.stats));