]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: properly handle replay of snap remove RPC message 7079/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 18:26:39 +0000 (13:26 -0500)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 30 Dec 2015 06:11:57 +0000 (11:41 +0530)
Fixes: #14164
Backport: infernalis
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit bc309d9d7612f005a3d50ecf099ddf9b706a1bf6)

src/librbd/internal.cc

index 1eaa50f81f3be1e19eca20bcd51f544f5ccfe9d2..8bbdfc762019213bd5694309bdb885dc402646c7 100644 (file)
@@ -719,7 +719,7 @@ int invoke_async_request(ImageCtx *ictx, const std::string& request_type,
                                            snap_name),
                                boost::bind(&ImageWatcher::notify_snap_remove,
                                            ictx->image_watcher, snap_name));
-      if (r < 0 && r != -EEXIST) {
+      if (r < 0 && r != -ENOENT) {
         return r;
       }
     } else {