]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-mirror: do not log error upon bootstrap cancel
authorJason Dillaman <dillaman@redhat.com>
Thu, 26 Dec 2019 13:32:01 +0000 (08:32 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 26 Dec 2019 13:32:57 +0000 (08:32 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc

index 16143f823fa671b144bd62be5773e78d241561b7..cdc6a95aac67307d9d7ddecc3af45cc1a691650e 100644 (file)
@@ -479,7 +479,11 @@ void BootstrapRequest<I>::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;
   }