]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
filestore: make OpSequencer::flush() work for writeahead journaling items
authorSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 23:12:17 +0000 (15:12 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 23:30:39 +0000 (15:30 -0800)
commit3a235b0f2136c50823cafefe705eff610b0cded8
tree33a2230b564d562ba6af51f96815c2570222550e
parent285f351b723282d82355647ff5d4098eec3d72c2
filestore: make OpSequencer::flush() work for writeahead journaling items

It was only waiting for items in the op_queue to complete.  The goal is
to wait for anything we've called queue_transactions(&osr,...) on. If we
do writeahead journaling, though, there might be new ops that are still
journaling but not yet submitted to the fs that are missed.

This adds a journal queue to the OpSequencer, and uses it in the writeahead
case only.

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/FileStore.cc
src/os/FileStore.h