]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: add async recovery and backfill to pg dout() prefix
authorNeha Ojha <nojha@redhat.com>
Thu, 15 Mar 2018 00:42:28 +0000 (17:42 -0700)
committerNeha Ojha <nojha@redhat.com>
Thu, 15 Mar 2018 18:13:34 +0000 (11:13 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/PG.cc

index 8fa38b163be96dbc14ae3863fbf9007d0e7404f3..f15049cba24c9ca9168e462477cdec744da6d5b8 100644 (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();