]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/ObjectCacher: call read completion even when no target buffer
authorSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 19:34:07 +0000 (12:34 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 22:56:39 +0000 (15:56 -0700)
commitdbfb993cf9f02cad1f5015e0ce068032368fba75
treecf00959e20804a68c8bf4fac0c915db2be407d1c
parent80c5b4cee03ee447ae768b940d2d095e9aba95b5
osdc/ObjectCacher: call read completion even when no target buffer

If we do no assemble a target bl, we still want to return a valid return
code with the number of bytes read-ahead so that the C_RetryRead completion
will see this as a finish and call the caller's provided Context.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 032d4ec53e125ad91ad27ce58da6f38dcf1da92e)
src/osdc/ObjectCacher.cc