]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: copy: conditionally requeue copy ops when cancelled 746/head
authorGreg Farnum <greg@inktank.com>
Fri, 18 Oct 2013 23:34:11 +0000 (16:34 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 18 Oct 2013 23:34:11 +0000 (16:34 -0700)
commit8586c755ff37acadb96ff888195fd6dd12b4a700
tree5a8e292788a0471212d11a58ddbed7ccc82c96ab
parent6dff9261518b3e8684e25c5e9603b3bf5a5da4f8
ReplicatedPG: copy: conditionally requeue copy ops when cancelled

We may need to requeue copy ops which are cancelled as part of an acting
set change but don't change the primary. To support this, add a
"requeue" flag to cancel_copy_ops() and copy_ops(), as well as to
CopyResults. The CopyCallback is then responsible for requeuing (the
higher layers can't do so as they can't know which request actually
triggered the copy).

Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h