]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: include primary in PG operator<< for ec pools
authorSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 15:22:37 +0000 (09:22 -0600)
committerDavid Zafman <dzafman@redhat.com>
Mon, 22 Jan 2018 18:23:14 +0000 (10:23 -0800)
Otherwise it is confusing!

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 0d98f262c0894b11b77deb3a4bf494f20be486c3)

src/osd/PG.cc

index 476d5a320dab33d504eb76f86e8debc25614059a..541747bbd47112dd6fed8225b16a9bbaf919cdc3 100644 (file)
@@ -5644,6 +5644,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();