]> 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)
committerNathan Cutler <ncutler@suse.com>
Mon, 20 Apr 2020 11:14:03 +0000 (13:14 +0200)
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>
(cherry picked from commit ef68f686be6d5cb9ca221e65deeff311bc397aa4)

src/librbd/api/Mirror.cc

index 304611dd9e01f11be705930e1fa35ac212522be9..de8e58604d559204e8b798ebbc2893acaa7d27ff 100644 (file)
@@ -1474,7 +1474,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;
     }