mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
librados_test_stub: tmap_update: return -ENOENT when removing nonexistent key
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
32378addb2
commit
2a48c028bd
@ -260,7 +260,10 @@ int TestIoCtxImpl::tmap_update(const std::string& oid, bufferlist& cmdbl) {
|
||||
tmap[key] = value;
|
||||
break;
|
||||
case CEPH_OSD_TMAP_RM:
|
||||
tmap.erase(key);
|
||||
r = tmap.erase(key);
|
||||
if (r == 0) {
|
||||
return -ENOENT;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user