os/filestore: print out the error if do_read_entry() fails

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-10-17 17:08:59 +08:00
parent 34f524c96b
commit 42e85fe35d

View File

@ -1973,6 +1973,8 @@ bool FileJournal::read_entry(
journaled_seq = seq; journaled_seq = seq;
return true; return true;
} }
} else {
derr << "do_read_entry(" << pos << "): " << ss.str() << dendl;
} }
if (seq && seq < header.committed_up_to) { 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" dout(2) << "No further valid entries found, journal is most likely valid"
<< dendl; << dendl;
return false; return false;