]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: object copy should always reference valid snapshots
authorJason Dillaman <dillaman@redhat.com>
Tue, 21 Feb 2017 18:09:39 +0000 (13:09 -0500)
committerNathan Cutler <ncutler@suse.com>
Thu, 13 Apr 2017 21:23:29 +0000 (23:23 +0200)
commit46ba56025c283a70b0f384ef38f47542f0885c5b
tree197370d16f28d1b39afeeb626cbc9685c7e93474
parentd1ac70a4d06ed07a66e7886c00c712a26fd72e9d
rbd-mirror: object copy should always reference valid snapshots

If a remote snapshot is deleted while an image sync is in-progress,
associate the read request against the most recent, valid remote
snapshot for a given snapshot object clone.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 9a91efc3047963364944f8be91cee8e8f6afc49a)
src/librados/snap_set_diff.cc
src/librados/snap_set_diff.h
src/librbd/DiffIterate.cc
src/tools/rbd_mirror/image_sync/ObjectCopyRequest.cc
src/tools/rbd_mirror/image_sync/ObjectCopyRequest.h