]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/ObjectCacher: set complete flag when we observe ENOENT
authorSage Weil <sage@inktank.com>
Wed, 24 Oct 2012 21:41:38 +0000 (14:41 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Oct 2012 18:31:45 +0000 (11:31 -0700)
commitb9b1be6d681b354fa31a3c544660dcdc7c35e5a8
treeca8424ecb2073366844848d62a14e8e522b7d147
parent94d2b91d5b2555c8c77b78cc089d56fa6793d29a
osdc/ObjectCacher: set complete flag when we observe ENOENT

If we observe an ENOENT on a read, set the complete flag.  Any dirty
buffers we have will still be in memory, even if the write are in flight,
because the TX state remains pinned until the writes commit.  Writes cannot
proceed faster than reads, even though reads may proceed faster than
writes.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/ObjectCacher.cc