]> git.apps.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:10:25 +0000 (11:10 -0800)
commitee943c8bcf36f1e2218d8e25edfa38ec5fe4bec2
tree4c7505f5a611823deacfb070616ed9d4702164b1
parent8c6f52215240f48b5e4d5bb99a5f2f451e7ce70a
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>
(cherry picked from commit 5d54ab154ca790688a6a1a2ad5f869c17a23980a)
src/os/FileJournal.cc