]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
uclient: use objectcacher->is_cached to make readahead smarter
authorSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:11:08 +0000 (15:11 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:11:08 +0000 (15:11 -0700)
commit3cd5d7316484c92a2e7346369bc30e30fd96fc5e
tree518ed14ccf17a12a8a6a6d5521355c2decd7640d
parent359f2588fef2be1fc2a1b6485fde690a2fe8a3f8
uclient: use objectcacher->is_cached to make readahead smarter

Only initiate readahead if we have less than 1/2 of what we
want to readahead.  Otherwise we still do small reads, just way
ahead of the current read position.
src/client/Client.cc