]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileJournal::wrap_read_bl: adjust pos before returning
authorSamuel Just <sam.just@inktank.com>
Thu, 28 Feb 2013 00:58:45 +0000 (16:58 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 28 Feb 2013 19:08:27 +0000 (11:08 -0800)
commit5d54ab154ca790688a6a1a2ad5f869c17a23980a
treef127ca24ddb3071a8027a5219421d191381b28f6
parentf58601d681d3aee6541119ab830ba5e2a9ec3a13
FileJournal::wrap_read_bl: adjust pos before returning

Otherwise, we may feed an offset past the end of the journal to
check_header in read_entry and incorrectly determine that the entry is
corrupt.

Fixes: 4296
Backport: bobtail
Backport: argonaut
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileJournal.cc