]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
journaler: fix requested_pos badness in _issue_read
authorSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 21:01:40 +0000 (14:01 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 21:01:40 +0000 (14:01 -0700)
commitff2c2e31973dabeb210358b6c9b44d7d76c661c8
tree78bc5e88b986a30d0b2f9e5fda7c0caed5bf8681
parent0fb02b25daa04d590ad9d5bbc42525a1d5d35aed
journaler: fix requested_pos badness in _issue_read

We want to advance requested_pos *only* as far as we actually want to read,
i.e., the previously-probed end of the journal.

This, among other things, will screw us up later when we reprobe and try to
read more because requested_pos is already past read_pos.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osdc/Journaler.cc