PG: add async recovery and backfill to pg dout() prefix

Signed-off-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Neha Ojha 2018-03-14 17:42:28 -07:00
parent e68f2f0ff0
commit 1b4f86cb04

View File

@ -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();