mirror of
https://github.com/ceph/ceph
synced 2025-01-29 06:24:03 +00:00
librbd: rename of non-existent image results in seg fault
Fixes: http://tracker.ceph.com/issues/21248 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
149778edde
commit
4a75ee43d3
@ -970,8 +970,7 @@ int validate_pool(IoCtx &io_ctx, CephContext *cct) {
|
||||
ImageCtx *ictx = new ImageCtx(srcname, "", "", io_ctx, false);
|
||||
int r = ictx->state->open(false);
|
||||
if (r < 0) {
|
||||
lderr(ictx->cct) << "error opening source image: " << cpp_strerror(r)
|
||||
<< dendl;
|
||||
lderr(cct) << "error opening source image: " << cpp_strerror(r) << dendl;
|
||||
return r;
|
||||
}
|
||||
BOOST_SCOPE_EXIT((ictx)) {
|
||||
|
Loading…
Reference in New Issue
Block a user