]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_objectstore: add AppendWalVsTailCache test
authorSage Weil <sage@redhat.com>
Mon, 21 Mar 2016 18:04:50 +0000 (14:04 -0400)
committerSage Weil <sage@redhat.com>
Wed, 30 Mar 2016 15:23:14 +0000 (11:23 -0400)
commit08bb1ca320896cdeccecf24d12fb59a1f7710d73
tree38f496f222dd475797eb3c88b0c31b84a4f8dc9e
parenta58ffab447d3a5148cc2184bccde41a0738e7e07
ceph_test_objectstore: add AppendWalVsTailCache test

This specifically exercises a WAL overwrite racing with a subsequent
append that uses the previous writes cached tail.  We need to make sure
the use of the cached_tail waits for the previous WAL write or else our
update of tail block will be overwritten with the prior (WAL) value.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/objectstore/store_test.cc