]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: include primary in PG operator<< for ec pools 19453/head
authorSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 15:22:37 +0000 (09:22 -0600)
committerSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 15:22:37 +0000 (09:22 -0600)
Otherwise it is confusing!

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 402a9d7c65b9091931e9796e077a28f7f8bbf598..67371f422d062352ed21fe42c0e1e1c5bc208237 100644 (file)
@@ -5591,6 +5591,8 @@ ostream& operator<<(ostream& out, const PG& pg)
       << " " << pg.up;
   if (pg.acting != pg.up)
     out << "/" << pg.acting;
+  if (pg.is_ec_pg())
+    out << "p" << pg.get_primary();
   out << " r=" << pg.get_role();
   out << " lpr=" << pg.get_last_peering_reset();