]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: migration abort should revert data back to the original image 36471/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 5 Aug 2020 13:12:41 +0000 (09:12 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 17 Aug 2020 12:54:26 +0000 (08:54 -0400)
commit5bd15da8be09a4e7644d411a0b0c132e5b795393
treeaefe2994f98a1f0a1681508e2df439606d6b335e
parentd848b4f1c083bd9f3e6eac3e186c9e7df2e22004
librbd: migration abort should revert data back to the original image

If the migration destination image was modified and then the migration
was aborted, we need to copy the data back to the source image to avoid
losing data. For simplicity we will only revert the HEAD revision state
and will not attempt to copy new snapshots on the destination image
back to the source.

Fixes: https://tracker.ceph.com/issues/41394
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc
src/librbd/api/Migration.h
src/test/librbd/test_Migration.cc