From: Jason Dillaman Date: Fri, 24 Jun 2016 14:03:53 +0000 (-0400) Subject: librbd: do not propagate mirror status notification failures X-Git-Tag: v11.0.0~39^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=97bade9f76af62765d7aa8c2154e51a7b231e40f;p=ceph.git librbd: do not propagate mirror status notification failures These should be treated as a broadcast since no ACK is required. The peer will eventually see the notification or its watch will have timed out and it will re-sync. Fixes: http://tracker.ceph.com/issues/16470 Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index e03a47e7cb56..edcec0f11056 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -248,7 +248,6 @@ int mirror_image_enable(CephContext *cct, librados::IoCtx &io_ctx, if (r < 0) { lderr(cct) << "failed to send update notification: " << cpp_strerror(r) << dendl; - return r; } ldout(cct, 20) << "image mirroring is enabled: global_id=" << @@ -341,7 +340,6 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force, if (r < 0) { lderr(cct) << "failed to send update notification: " << cpp_strerror(r) << dendl; - return r; } header_oid = ::journal::Journaler::header_oid(ictx->id); @@ -3214,7 +3212,6 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force, if (r < 0) { lderr(cct) << "failed to send update notification: " << cpp_strerror(r) << dendl; - return r; } } @@ -3370,7 +3367,6 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force, if (r < 0) { lderr(cct) << "failed to send update notification: " << cpp_strerror(r) << dendl; - return r; } return 0; }