]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados_test_stub: handle exclusive create 36317/head
authorOr Ozeri <oro@il.ibm.com>
Tue, 28 Jul 2020 09:08:30 +0000 (12:08 +0300)
committerOr Ozeri <oro@il.ibm.com>
Wed, 29 Jul 2020 11:39:08 +0000 (14:39 +0300)
commit143be4cc3cb264a125a0272c796a438af281303a
tree1cac874c7110f2c72e1aeb3586f376c41182afd5
parent4bf04db39f136c6abc15b6f694dfd9578591b787
test/librados_test_stub: handle exclusive create

The exclusive boolean of the create method was unused so far.
This commit adds the proper handling by checking if an object already exists, and returning EEXISTS appropriately.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librbd/image/test_mock_ValidatePoolRequest.cc