]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test_filestore_idempotent_sequence: put txn object in each collection
authorSage Weil <sage@redhat.com>
Fri, 16 Feb 2018 22:50:04 +0000 (16:50 -0600)
committerSage Weil <sage@redhat.com>
Fri, 16 Feb 2018 22:50:04 +0000 (16:50 -0600)
commit08324f711871bd7d78173f8ac1e586eef1070d66
tree115b79608aa6346fa097db1b845a95636aa9031f
parent03e1fae32ca36db49d1e607827594a42ee9c6fa1
test_filestore_idempotent_sequence: put txn object in each collection

The transactions are idependent in each collection/sequencer, so we
can't record to a single txn object with racing transactions.  Fix
it by doing one in each collection, and when reading the latest op,
use the highest txn value we see.

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