diff options
author | Samuel Just <sam.just@inktank.com> | 2013-03-19 14:45:41 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-03-21 18:09:58 -0700 |
commit | 42a71c1dd866dd73f3410bc536ae15044da2fae2 (patch) | |
tree | 5b33220a2d1f09d3cb2a3dc1f57ae7fcd75d71c1 | |
parent | d67eee1d11d313817fae5a672ab835777a6601e2 (diff) | |
download | ceph-42a71c1dd866dd73f3410bc536ae15044da2fae2.tar.gz |
FileJournal: quieter debugging on journal scanning
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit 6740d512ac12263f7bee370bc14b1179f83af5be)
-rw-r--r-- | src/os/FileJournal.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index f3e801bb207..52765359b9f 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1658,6 +1658,7 @@ bool FileJournal::read_entry( g_conf->journal_max_corrupt_search)) { errss << "Entry at pos " << pos << " possibly corrupt due to: (" << ss.str() << ")" << std::endl; + ss.str(string()); ss.clear(); pos = next_pos; result = do_read_entry( @@ -1698,7 +1699,7 @@ bool FileJournal::read_entry( } } - dout(2) << errss.str() << dendl; + dout(25) << errss.str() << dendl; dout(2) << "No further valid entries found, journal is most likely valid" << dendl; return false; @@ -1724,8 +1725,8 @@ FileJournal::read_entry_result FileJournal::do_read_entry( h = (entry_header_t *)hbl.c_str(); if (!h->check_magic(pos, header.get_fsid64())) { - dout(2) << "read_entry " << pos - << " : bad header magic, end of journal" << dendl; + dout(25) << "read_entry " << pos + << " : bad header magic, end of journal" << dendl; if (ss) *ss << "bad header magic"; if (next_pos) |