Merge pull request #2166 from majianpeng/bug-fix

os/FileJournal: When dump journal, using correctly seq avoid misjudging joural corrupt.

Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-08-04 10:33:16 -07:00
commit 18b7a37c96

View File

@ -565,9 +565,9 @@ int FileJournal::dump(ostream& out)
JSONFormatter f(true);
f.open_array_section("journal");
uint64_t seq = 0;
while (1) {
bufferlist bl;
uint64_t seq = 0;
uint64_t pos = read_pos;
if (!read_entry(bl, seq)) {
dout(3) << "journal_replay: end of journal, done." << dendl;