]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_objectstore: fix Synthetic to never modify bufferlists
authorSage Weil <sage@redhat.com>
Fri, 10 Mar 2017 15:27:52 +0000 (10:27 -0500)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:29 +0000 (13:56 -0500)
commite46081c8c6180d279c550897346eee81d29d9204
tree9a7549e052045d1f0c987b47c124f84a503a884f
parentba159deb555fda66d957239a24bbf5ab05a6e4b5
ceph_test_objectstore: fix Synthetic to never modify bufferlists

We were modifying bufferlists in place, and kludging around it by making
full copies elsewhere.  Instead, never modify a buffer.

This fixes issues where the buffer we submit to ObjectStore ends up in
the cache and we modify in place later, corrupting the implementation's
copy.  (This was affecting BlueStore.)

Rearrange the data methods to be next to each other and clean them up a
bit too.

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