From 42e85fe35d2fe8f3e99bd110021fd5157cf589d7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 17 Oct 2017 17:08:59 +0800 Subject: [PATCH] os/filestore: print out the error if do_read_entry() fails Signed-off-by: Kefu Chai --- src/os/filestore/FileJournal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc index 15ed6eeb2d3..1b8c1bd63d9 100644 --- a/src/os/filestore/FileJournal.cc +++ b/src/os/filestore/FileJournal.cc @@ -1973,6 +1973,8 @@ bool FileJournal::read_entry( journaled_seq = seq; return true; } + } else { + derr << "do_read_entry(" << pos << "): " << ss.str() << dendl; } if (seq && seq < header.committed_up_to) { @@ -1988,7 +1990,6 @@ bool FileJournal::read_entry( } } - dout(25) << ss.str() << dendl; dout(2) << "No further valid entries found, journal is most likely valid" << dendl; return false;