]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: don't treat failure to gather mirror service daemons as a failure
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Feb 2020 19:16:52 +0000 (14:16 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 13 Feb 2020 01:22:56 +0000 (20:22 -0500)
The only negative result is that instance ids cannot be cross-referenced
to the matching rbd-mirror daemon service.

Fixes: https://tracker.ceph.com/issues/44066
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/action/MirrorPool.cc

index d6f649049bf2ec4fc167df5a026c832c40769ef6..09458d58788647f22733639c8a11716794ef7f2f 100644 (file)
@@ -1458,10 +1458,7 @@ int execute_status(const po::variables_map &vm,
   }
 
   MirrorDaemonServiceInfo daemon_service_info(io_ctx);
-  r = daemon_service_info.init();
-  if (r < 0) {
-    return r;
-  }
+  daemon_service_info.init();
 
   MirrorHealth mirror_daemon_health = daemon_service_info.get_daemon_health();
   auto mirror_services = daemon_service_info.get_mirror_services();