From af276de4f299960e43761904c043924cec5fef11 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 26 Jun 2015 09:59:36 -0400 Subject: [PATCH] librbd: assertion failure race condition if watch disconnected 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 --- src/librbd/internal.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index 44ecf54fcb0..9316e473a25 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -1964,7 +1964,6 @@ reprotect_and_return_err: close_image(ictx); return -EBUSY; } - assert(watchers.size() == 1); trim_image(ictx, 0, prog_ctx); -- 2.47.3