From 0a1abac6ca74656cf9f445505891b4aaff6ddb26 Mon Sep 17 00:00:00 2001
From: Samuel Just <sam.just@inktank.com>
Date: Fri, 12 Sep 2014 12:26:30 -0700
Subject: [PATCH] osd_types: fix pg_log_t tail dump

Fixes: #9453
Signed-off-by: Samuel Just <sam.just@inktank.com>
---
 src/osd/osd_types.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc
index ce2d5f18f28..d7081b97ede 100644
--- a/src/osd/osd_types.cc
+++ b/src/osd/osd_types.cc
@@ -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");