From 0d98f262c0894b11b77deb3a4bf494f20be486c3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 Dec 2017 09:22:37 -0600 Subject: [PATCH] osd/PG: include primary in PG operator<< for ec pools Otherwise it is confusing! Signed-off-by: Sage Weil --- src/osd/PG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 402a9d7c65b90..67371f422d062 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(); -- 2.39.5