]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: properly close image on aborted open attempt
authorJason Dillaman <dillaman@redhat.com>
Wed, 11 Nov 2020 02:03:39 +0000 (21:03 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 17 Nov 2020 01:25:16 +0000 (20:25 -0500)
commitdad5d304d6bb33e4f48d927c067fd6cad9e72416
tree5336f121cb9953eea7b48df75807978e8de1c314
parent30192d987ff601106007a49190da7bd1d971d560
librbd/migration: properly close image on aborted open attempt

If the image is attempted to be openned, it can no longer be deleted.
Therefore, just close the image on any error that occurs before
attempting to open the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/migration/OpenSourceImageRequest.cc