Merge pull request #2521 from athanatos/wip-9453

osd_types: fix pg_log_t tail dump

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2014-09-18 12:55:49 -07:00
commit 0519225beb

View File

@ -2871,7 +2871,7 @@ void pg_log_t::decode(bufferlist::iterator &bl, int64_t pool)
void pg_log_t::dump(Formatter *f) const
{
f->dump_stream("head") << head;
f->dump_stream("tail") << head;
f->dump_stream("tail") << tail;
f->open_array_section("log");
for (list<pg_log_entry_t>::const_iterator p = log.begin(); p != log.end(); ++p) {
f->open_object_section("entry");