]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/migration: close image if failed to open source
authorJason Dillaman <dillaman@redhat.com>
Fri, 30 Oct 2020 14:00:27 +0000 (10:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 1 Nov 2020 14:22:38 +0000 (09:22 -0500)
commit9304f93bc63bc499b7e797f90d70d5b07aa3ac9c
treebfa26b28152789ffef93e0e7d467e35460483001
parentecac0a7563758a70097062095358448e6e9cbdc3
librbd/migration: close image if failed to open source

To remain consistent between the native which will automatically close
the ImageCtx if it fails to open the image, the raw format should also
close the ImageCtx.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc
src/librbd/migration/RawFormat.cc
src/test/librbd/migration/test_mock_RawFormat.cc