]> 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)
committerJason Dillaman <dillaman@redhat.com>
Wed, 22 Feb 2017 19:14:31 +0000 (14:14 -0500)
commita643fa80e03b41edcc720ff77b69ebaf24a23f3e
tree36571a5c00e2fcad46e848c03caaf509508fee91
parent37bbc95d56f73e4ec9c6e13ddbae199b14b104b4
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