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

Function timed_fdb_get

utils/timing.cc:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78ts_nsec timed_fdb_get(fdb_kvs_handle *kv, fdb_doc *doc){
79
80 ts_nsec start, end;
81 fdb_status status;
82
83 start = get_monotonic_ts();
84 status = fdb_get(kv, doc);
85 end = get_monotonic_ts();
86
87 if(status == FDB_RESULT_SUCCESS){
88 return ts_diff(start, end);
89 } else {
90 return ERR_NS;
91 }
92}
93
94ts_nsec timed_fdb_delete(fdb_kvs_handle *kv, fdb_doc *doc){
95

Callers

nothing calls this directly

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected