]> git-server-git.apps.pok.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:48:37 +0000 (15:48 -0700)
commit232445578a2c6d0fb974e55378057fce473095f7
treef11f4ada3ae0a38ca34dffba70bb0ac23e0a7cbc
parenta0a560a9f04311306a9784fa3c6ea2586d637f56
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