From: Sage Weil Date: Tue, 12 Dec 2017 15:22:37 +0000 (-0600) Subject: osd/PG: include primary in PG operator<< for ec pools X-Git-Tag: v13.0.2~793^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d98f262c0894b11b77deb3a4bf494f20be486c3;p=ceph.git osd/PG: include primary in PG operator<< for ec pools Otherwise it is confusing! Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 402a9d7c65b9..67371f422d06 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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();