From bfcd8a3de77e3dc6abc22a0b62a13774fe86c071 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 26 Dec 2019 08:32:01 -0500 Subject: [PATCH] rbd-mirror: do not log error upon bootstrap cancel Signed-off-by: Jason Dillaman --- src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc b/src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc index 16143f823fa6..cdc6a95aac67 100644 --- a/src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc +++ b/src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc @@ -479,7 +479,11 @@ void BootstrapRequest::handle_image_sync(int r) { } if (r < 0) { - derr << "failed to sync remote image: " << cpp_strerror(r) << dendl; + if (r == -ECANCELED) { + dout(10) << "request canceled" << dendl; + } else { + derr << "failed to sync remote image: " << cpp_strerror(r) << dendl; + } m_ret_val = r; } -- 2.47.3