On Mon, 15 Jul 2013, Loic Dachary wrote:
> Hi Sage,
>
> You mentionned that there is code somewhere checking the fact that all
> references to an ObjectContext are gone and that replacing manual reference
> counting with shared_ptr should preserve this ( i.e. in relation to
> https://github.com/ceph/ceph/pull/414 "replace ObjectContext pointers with
> shared_ptr" ). However, I've not been able to find such code. Would you be so
> kind as to show me where it is ?
>
> Cheers
It's in ReplicatedPG.cc:
void ReplicatedPG::on_flushed()
{
assert(object_contexts.empty());
}
which is called from the Reset state of the PG peering state machine.
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html