]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc: refactor use of _is_readable 4747/head
authorJohn Spray <john.spray@redhat.com>
Tue, 2 Jun 2015 13:24:49 +0000 (14:24 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 18 Jun 2015 10:19:44 +0000 (11:19 +0100)
commit451cee4f4d437f9b0787874823ce38484cc67cca
tree3b8dbeec3b5b07b2d9eab1ddfbc6ec0c512c5c6b
parent9e09e54fdce83f24d72b2eea57972b8ab54a2293
osdc: refactor use of _is_readable

Limit calls to _is_readable to places where the
readableness can actually have changed (on assimilate_prefetch
where it can go true, and in try_read_entry where it
can go false).  Elsewhere, return a cached
result (Journaler::readable).

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Journaler.cc
src/osdc/Journaler.h