]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: create ObjectContext with SharedPtrRegistry 414/head
authorLoic Dachary <loic@dachary.org>
Tue, 13 Aug 2013 15:28:31 +0000 (17:28 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 22 Aug 2013 00:10:59 +0000 (02:10 +0200)
commitd980f581e3530d28f3f690b3f4c099995d8d8ec5
tree9204c3c485428a81516a2c9098e7850c309ee4e6
parentbd9f73d8bcd5377093845dc6cc6388af652a9081
ReplicatedPG: create ObjectContext with SharedPtrRegistry

All new ObjectContext are replaced with calls to
SharedPtrRegistry::lookup_or_create to ensure that they are all
registered. Because the constructor is invoked with no argument, care
is taken to always initialize the destructor_callback data member
immediately afterwards.

ReplicatedPG::get_object_context contains a redundant call to
get_snapset_context that is removed.

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

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