]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: properly handle replay of snap remove RPC message 7042/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 18:26:39 +0000 (13:26 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 18:26:39 +0000 (13:26 -0500)
Fixes: #14164
Backport: infernalis
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc

index b3cae8973b48bb5fa833e5a88dc887650c916698..35b3003adbaa1c33aab0c2d0c90b3f3f3f1bbd53 100644 (file)
@@ -839,7 +839,7 @@ int validate_pool(IoCtx &io_ctx, CephContext *cct) {
                                            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 {