From: Jason Dillaman Date: Thu, 16 Jun 2016 13:38:28 +0000 (-0400) Subject: librbd: force-remove journal when disabling feature and removing image X-Git-Tag: v11.0.0~141^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d83aa1e0e44784e1f38698a839f8a353c87027eb;p=ceph.git librbd: force-remove journal when disabling feature and removing image If mirroring is enabled, it's nearly certain that the peer rbd-mirror daemon will be a registered client within the journal. Without forcing the removal, this would prevent the removal from occurring. Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index b874005843e..d4ae06bef65 100644 --- a/src/librbd/Journal.cc +++ b/src/librbd/Journal.cc @@ -424,7 +424,7 @@ int Journal::remove(librados::IoCtx &io_ctx, const std::string &image_id) { return r; } - r = journaler.remove(false); + r = journaler.remove(true); if (r < 0) { lderr(cct) << "failed to remove journal: " << cpp_strerror(r) << dendl; return r;