]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: assertion failure race condition if watch disconnected 5090/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
It's possible for librbd's watch of the header object to be reset by
connection issues just prior to the image being removed.  This will
causes an assertion failure which assumes at least one watcher on the
image.

Fixes: #12176
Backport: hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc

index 44ecf54fcb0e82d3a207ae2be70430997cf86558..9316e473a25c244cbc67e81833c8aa079b7e92e3 100644 (file)
@@ -1964,7 +1964,6 @@ reprotect_and_return_err:
         close_image(ictx);
         return -EBUSY;
       }
-      assert(watchers.size() == 1);
 
       trim_image(ictx, 0, prog_ctx);