diff options
author | Sage Weil <sage@newdream.net> | 2012-04-27 15:16:23 -0700 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-04-28 07:46:42 -0700 |
commit | db8e20b211d62b3be04caff08ff04b319b01452c (patch) | |
tree | 2cff8d2423600c26b8f91a7ead1ca69f9e81119d | |
parent | 12d1675ca0e2d63c1a4c36400614d3c4f2eefecf (diff) | |
download | ceph-db8e20b211d62b3be04caff08ff04b319b01452c.tar.gz |
osd: include past_intervals in pg debug printout
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/osd/PG.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 2bba57d1b67..549f0434402 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3665,6 +3665,11 @@ ostream& operator<<(ostream& out, const PG& pg) out << " r=" << pg.get_role(); out << " lpr=" << pg.get_last_peering_reset(); + if (pg.past_intervals.size()) { + out << " pi=" << pg.past_intervals.begin()->first << "-" << pg.past_intervals.rbegin()->second.last + << "/" << pg.past_intervals.size(); + } + if (pg.is_active() && pg.last_update_ondisk != pg.info.last_update) out << " luod=" << pg.last_update_ondisk; |