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

Method add

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

Source from the content-addressed store, hash-verified

74 }
75
76 bool add(const char* key, const char* value) {
77 assert(cursor_);
78 cursor_->set_key(cursor_, key);
79 cursor_->set_value(cursor_, value);
80 int ret = cursor_->insert(cursor_);
81 if (ret != 0) {
82 printf("insert %s %s failed, ret=%d\r\n", key, value, ret);
83 return false;
84 }
85 cursor_->reset(cursor_);
86 return true;
87 }
88
89 bool get(const char* key, acl::string& value) {
90 assert(cursor_);

Callers 1

addMethod · 0.45

Calls 3

insertMethod · 0.80
set_keyMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected