MCPcopy Create free account
hub / github.com/couchbase/forestdb / timed_fdb_delete

Function timed_fdb_delete

utils/timing.cc:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94ts_nsec timed_fdb_delete(fdb_kvs_handle *kv, fdb_doc *doc){
95
96 ts_nsec start, end;
97 fdb_status status;
98
99 start = get_monotonic_ts();
100 status = fdb_del(kv, doc);
101 end = get_monotonic_ts();
102
103 if(status == FDB_RESULT_SUCCESS){
104 return ts_diff(start, end);
105 } else {
106 return ERR_NS;
107 }
108}
109
110ts_nsec timed_fdb_snapshot(fdb_kvs_handle *kv, fdb_kvs_handle **snap_kv){
111

Callers 1

sequential_setFunction · 0.85

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected