]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: less aggressive prefetch in read/write Journaler
authorJohn Spray <john.spray@redhat.com>
Mon, 13 Feb 2017 00:16:29 +0000 (00:16 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Mar 2017 10:27:00 +0000 (10:27 +0000)
commit8d4f6b92cba0d2b15769a5ececdeab2692e2a3e3
tree2a82bfbed1437ebafd7ecc3496f862706690814f
parent199e5b465ad18cd6baa34c976cd11f199a6a52fb
osdc: less aggressive prefetch in read/write Journaler

Previously, if doing a write/is_readable/write/is_readable sequence,
you'd end up doing a flush after every write, even though there
was already a flush in flight that would advance the readable-ness
of the journal.

Because this flush-during-read path is only active when using
a read/write journal such as in PurgeQueue, tweak the behaviour
to suit this case.

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