]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: trash move should disable mirroring first if snapshot-based
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 02:31:46 +0000 (21:31 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 21:33:21 +0000 (16:33 -0500)
commitf5e2f968d3f8383be7242ab5c43f73bfe7ac1b59
tree565f802b5ec2247bb4cc1a17929f6d7f63c6701b
parenta895eb4b0f8d9a89987337e937620349d1ba01af
librbd: trash move should disable mirroring first if snapshot-based

The remote rbd-mirror might own the exclusive lock (if any) which would
normally prevent 'trash move' from functioning. If using snapshot-based
mirroring, disable mirroring first to ensure the remote rbd-mirror
will have lost the lock.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Trash.cc