]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
objectcacher: only want for commit
authorSage Weil <sage.weil@dreamhost.com>
Fri, 26 Aug 2011 16:47:03 +0000 (09:47 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 26 Aug 2011 16:47:03 +0000 (09:47 -0700)
commit3a4d19369fcebf046eae2f9bd851f85f604f6eb4
tree173ac3563b35a1d4268b04011596796f4ce344d7
parent05063867e2a54176ffc9bbc73391f52766ab403f
objectcacher: only want for commit

There was some old, weird stuff going on here where we would wait for the
ACK and COMMIT separately.  This is just wrong.  Writeback does not
complete until the data is committed on disk.

Simplify by waiting only for commit, removing all the 'ack' code, and
going back to a single callback (flush_set).

I didn't notice this for 05063867e2a54176ffc9bbc73391f52766ab403f; both of
these cleanups are needed to fix this.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/client/Client.cc
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h