MCPcopy Create free account
hub / github.com/acl-dev/acl / del

Method del

lib_acl_cpp/samples/benchmark/wiredtiger/main.cpp:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 bool del(const char* key) {
111 assert(cursor_);
112 cursor_->set_key(cursor_, key);
113 int ret = cursor_->remove(cursor_);
114 if (ret != 0) {
115 printf("remove %s failed, ret=%d\r\n", key, ret);
116 return false;
117 }
118
119 cursor_->reset(cursor_);
120 return true;
121 }
122
123private:
124 wdb& db_;

Callers 1

delMethod · 0.45

Calls 3

set_keyMethod · 0.45
removeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected