]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: fix sparse read optimization in image sync 12368/head
authorMykola Golub <mgolub@mirantis.com>
Wed, 7 Dec 2016 16:18:47 +0000 (18:18 +0200)
committerMykola Golub <mgolub@mirantis.com>
Thu, 8 Dec 2016 09:43:32 +0000 (11:43 +0200)
commita2cfc17d25ca8b61a54afc88a05e70df415d6da7
tree789856424829f3bcdb20290e58dabcf5d744064b
parent96cf8a1b2878d56c5e5d7cecbfd9e776871766b7
rbd-mirror: fix sparse read optimization in image sync

Issue truncate or zero ops for the subtracted extents between the
diff and the sparse read.

Fixes: http://tracker.ceph.com/issues/18146
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/test/rbd_mirror/test_ImageSync.cc
src/tools/rbd_mirror/image_sync/ObjectCopyRequest.cc
src/tools/rbd_mirror/image_sync/ObjectCopyRequest.h