]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not show the default auth if it's unambiguous 40638/head
authorXiubo Li <xiubli@redhat.com>
Wed, 7 Apr 2021 03:08:03 +0000 (11:08 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 7 Apr 2021 06:04:36 +0000 (14:04 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/CDentry.cc

index 7d8170f73167ab12c299e9ffa496b7bdcf1d9f55..70d33a00165f2188fcfbc7bf6ce6fb8fc2490279 100644 (file)
@@ -63,7 +63,10 @@ ostream& operator<<(ostream& out, const CDentry& dn)
     if (dn.is_replicated()) 
       out << dn.get_replicas();
   } else {
-    out << " rep@" << dn.authority();
+    mds_authority_t a = dn.authority();
+    out << " rep@" << a.first;
+    if (a.second != CDIR_AUTH_UNKNOWN)
+      out << "," << a.second;
     out << "." << dn.get_replica_nonce();
   }