]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: avoid async callback on image ctx open request
authorJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2020 02:26:54 +0000 (21:26 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2020 03:34:34 +0000 (22:34 -0500)
commit5407e4380b318cf04f9996fc9d163abd8b9674b3
tree0e8c4bb1f81c0977ffc4a302b94d6152822de34b
parent668cbff880808a5eb2c09e0426ba95cf832f7163
librbd/migration: avoid async callback on image ctx open request

If the ImageState::open call fails, we cannot have the callback be
asynchronously dispatched via the now deleted ImageCtx object.

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