]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: do not pass cop into C_Copyfrom
authorSamuel Just <sam.just@inktank.com>
Tue, 12 Aug 2014 19:20:28 +0000 (12:20 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 12 Aug 2014 23:21:00 +0000 (16:21 -0700)
commit300b5e8ecbb7526b55e2cb5eeba81fd501a8b652
tree43fe046b69255c1a570642b926fe147a2375dec9
parentafa176e7feadc5c162972723864efc187b995da6
ReplicatedPG: do not pass cop into C_Copyfrom

We do not know when the objecter will finally let go of this Context.  Thus, we
cannot know whether it will happen before the flush, at which point the
object_context held by the cop must have been released.

Also, we simply don't need it, process_copy_chunk alrady works in terms of the
tid!

Fixes: #8894
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc