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

Function timed_fdb_compact

utils/timing.cc:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45ts_nsec timed_fdb_compact(fdb_file_handle *fhandle){
46
47 ts_nsec start, end;
48 fdb_status status;
49
50 start = get_monotonic_ts();
51 status = fdb_compact(fhandle, NULL);
52
53 end = get_monotonic_ts();
54
55 if(status == FDB_RESULT_SUCCESS){
56 return ts_diff(start, end);
57 } else {
58 return ERR_NS;
59 }
60}
61
62ts_nsec timed_fdb_set(fdb_kvs_handle *kv, fdb_doc *doc){
63

Callers

nothing calls this directly

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected