]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: ObjectContext * becomes ObjectContextRef
authorLoic Dachary <loic@dachary.org>
Mon, 12 Aug 2013 15:45:44 +0000 (17:45 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 22 Aug 2013 00:10:58 +0000 (02:10 +0200)
commitff70e764dc5da8dfc13ab541f20b057ff7db6d0d
treee31efee1f9a861d04c0bcd44874b8e7e9f55bb5e
parent7e85c6320c212c383ed000639f2133423cd3d40f
ReplicatedPG: ObjectContext * becomes ObjectContextRef

The map of hobject_t to ObjectContext is made a
SharedPtrRegistry owned by ReplicatedPG

    -  map<hobject_t, ObjectContext*> object_contexts;
    +  SharedPtrRegistry<hobject_t, ObjectContext> object_contexts;

All ObjectContext pointers are changed into ObjectContextRef, i.e.
shared_ptr.

In Watch.h std::tr1::shared_ptr<ObjectContext> is used instead
of ObjectContextRef because Watch.h is included before it is
defined.

http://tracker.ceph.com/issues/5510 refs #5510

Signed-off-by: Loic Dachary <loic@dachary.org>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/Watch.cc
src/osd/Watch.h