]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: register_object_context and register_snapset_context cleanup
authorSamuel Just <samuelj@hq.newdream.net>
Wed, 12 Jan 2011 21:51:55 +0000 (13:51 -0800)
committerSamuel Just <samuelj@hq.newdream.net>
Wed, 12 Jan 2011 21:51:55 +0000 (13:51 -0800)
commit9c80239b6a7106f4ca585c3d36c7de231824936e
tree74729b0db2a9040ff1dda21e23bae5125f1e8caf
parent8f327d11cab449b875ffe9818c9ee7ecfe854204
ReplicatedPG: register_object_context and register_snapset_context cleanup

Previously, get_object_context and get_snapset_context did not register
the resulting objects.  In some cases, these objects would not get
registered and multiple copies would end up created.  This caused a bug
in find_object_context where get_snapset_context could return an object
distinct from the one referenced by the object returned from
get_object_context.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
src/osd/ReplicatedPG.cc