mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
commit
18b7a37c96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user