]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/JournalTool: Fix 'header set' corner case
authorJohn Spray <john.spray@inktank.com>
Mon, 19 May 2014 16:22:31 +0000 (17:22 +0100)
committerJohn Spray <john.spray@inktank.com>
Tue, 20 May 2014 13:07:52 +0000 (14:07 +0100)
commitb76e64b29b6899c355228cddd96b24d2e73b16e4
tree6210af3b2b4f6c0d7399852f89b9901bd1b90e6a
parent5d913e2b1cc13ec3e1d0e4c45d78785493317085
tools/JournalTool: Fix 'header set' corner case

If the write_pos was behind the other pointers, we
would flag the header as invalid.  However, that
would prevent doing a "header set" to correct it.

Signed-off-by: John Spray <john.spray@inktank.com>
src/tools/cephfs/JournalScanner.cc
src/tools/cephfs/JournalTool.cc