From 1b4f86cb044bead252f22c427417bea643eb19ca Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Wed, 14 Mar 2018 17:42:28 -0700 Subject: [PATCH] PG: add async recovery and backfill to pg dout() prefix Signed-off-by: Neha Ojha --- src/osd/PG.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 8fa38b163be96..f15049cba24c9 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6047,6 +6047,10 @@ ostream& operator<<(ostream& out, const PG& pg) out << "/" << pg.acting; if (pg.is_ec_pg()) out << "p" << pg.get_primary(); + if (!pg.async_recovery_targets.empty()) + out << " async=[" << pg.async_recovery_targets << "]"; + if (!pg.backfill_targets.empty()) + out << " backfill=[" << pg.backfill_targets << "]"; out << " r=" << pg.get_role(); out << " lpr=" << pg.get_last_peering_reset(); -- 2.39.5