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: v12.2.3~145^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23a08fce7db373cfed8e69b379f82654110e436a;p=ceph.git osd/PG: include primary in PG operator<< for ec pools Otherwise it is confusing! Signed-off-by: Sage Weil (cherry picked from commit 0d98f262c0894b11b77deb3a4bf494f20be486c3) --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 476d5a320dab..541747bbd471 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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();