]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados_test_stub: reimplement cmpext()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 20 Feb 2019 10:37:07 +0000 (11:37 +0100)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 May 2019 20:48:54 +0000 (16:48 -0400)
commit0a1d101d54397d738708ae80368ad2376552445a
tree4a8946e465f0bfcf66ce381e715f659cae68bc9a
parent1a2d977e113557c6c36c850da5ed138e65f0e535
test/librados_test_stub: reimplement cmpext()

cmpext is a read operation.  As such, it shouldn't be creating objects
or extending them and it should accept snapshots.

The compare code is completely broken, resulting in false positives
(i.e. failures to detect mismatches) in many cases.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 6a2986fcb21af817746034398b26b599c9cd757c)
src/test/librados_test_stub/TestMemIoCtxImpl.cc