mirror of
https://github.com/ceph/ceph
synced 2024-12-21 10:54:42 +00:00
librbd/api: ImageCtx must be closed instead of deleted
On error, the destination image context will need to be properly closed instead of just deleted. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
6fef5198b3
commit
43749377cb
@ -753,7 +753,7 @@ int Migration<I>::prepare() {
|
||||
|
||||
BOOST_SCOPE_EXIT_TPL(&m_dst_image_ctx) {
|
||||
if (m_dst_image_ctx != nullptr) {
|
||||
delete m_dst_image_ctx;
|
||||
m_dst_image_ctx->state->close();
|
||||
}
|
||||
} BOOST_SCOPE_EXIT_END;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user