]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: fix valgrind uninitialised value warning
authorMykola Golub <mgolub@mirantis.com>
Wed, 23 Aug 2017 12:02:07 +0000 (14:02 +0200)
committerMykola Golub <mgolub@mirantis.com>
Wed, 23 Aug 2017 12:49:35 +0000 (14:49 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/operation/SnapshotRemoveRequest.cc

index 4cbfc03b0d497f5954d8f11104007815f9fd04d4..4daf9fdfb312a6e20c85ecc923859ea6ecabb12a 100644 (file)
@@ -107,6 +107,7 @@ void SnapshotRemoveRequest<I>::send_remove_object_map() {
     if (image_ctx.snap_info.find(m_snap_id) == image_ctx.snap_info.end()) {
       lderr(cct) << this << " " << __func__ << ": snapshot doesn't exist"
                  << dendl;
+      m_state = STATE_ERROR;
       this->async_complete(-ENOENT);
       return;
     }