]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: mirror peer add error message should include site name
authorJason Dillaman <dillaman@redhat.com>
Wed, 15 Apr 2020 20:26:09 +0000 (16:26 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 Apr 2020 20:26:09 +0000 (16:26 -0400)
It previously included the pointer to string holding the generated
uuid (neither of which would mean much to an end user).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Mirror.cc

index 4fafea2a7ab95451ca4601a0aba5f6bdd7e0e7b0..5e006690861e69bb8f43241e76b26c505032f382 100644 (file)
@@ -1486,7 +1486,7 @@ int Mirror<I>::peer_site_add(librados::IoCtx& io_ctx, std::string *uuid,
     if (r == -ESTALE) {
       ldout(cct, 5) << "duplicate UUID detected, retrying" << dendl;
     } else if (r < 0) {
-      lderr(cct) << "failed to add mirror peer '" << uuid << "': "
+      lderr(cct) << "failed to add mirror peer '" << site_name << "': "
                  << cpp_strerror(r) << dendl;
       return r;
     }