Signed-off-by: Sage Weil <sage@inktank.com>
WRITE_CLASS_ENCODER(HitSet);
WRITE_CLASS_ENCODER(HitSet::Params);
+typedef boost::shared_ptr<HitSet> HitSetRef;
+
ostream& operator<<(ostream& out, const HitSet::Params& p);
/**
void ReplicatedPG::hit_set_clear()
{
dout(20) << __func__ << dendl;
- hit_set.reset(NULL);
+ hit_set.reset();
hit_set_start_stamp = utime_t();
}
void simple_repop_submit(RepGather *repop);
// hot/cold tracking
- boost::scoped_ptr<HitSet> hit_set; ///< currently accumulating HitSet
+ HitSetRef hit_set; ///< currently accumulating HitSet
utime_t hit_set_start_stamp; ///< time the current HitSet started recording
void hit_set_clear(); ///< discard any HitSet state