Currently we call get_pool on the PeeringState before the PeeringState
has been initialized.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
coll(p),
osd(o),
cct(o->cct),
- pool(recovery_state.get_pool()),
osdriver(osd->store, coll_t(), OSD::make_snapmapper_oid()),
snap_mapper(
cct,
curmap,
this,
this),
+ pool(recovery_state.get_pool()),
info(recovery_state.get_info())
{
#ifdef PG_DEBUG_REFS
protected:
CephContext *cct;
- const PGPool &pool;
-
// locking and reference counting.
// I destroy myself when the reference count hits zero.
// lock() should be called before doing anything.
protected:
PeeringState recovery_state;
- /**
- * Ref to pg_info_t in Peering state
- */
+ // ref to recovery_state.pool
+ const PGPool &pool;
+
+ // ref to recovery_state.info
const pg_info_t &info;
};