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

Function timed_fdb_iterator_close

utils/timing.cc:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230ts_nsec timed_fdb_iterator_close(fdb_iterator *it){
231
232 ts_nsec start, end;
233 fdb_status status;
234
235 start = get_monotonic_ts();
236 status = fdb_iterator_close(it);
237 end = get_monotonic_ts();
238
239 if(status == FDB_RESULT_SUCCESS){
240 return ts_diff(start, end);
241 } else {
242 return ERR_NS;
243 }
244
245}
246
247/*
248 return a monotonically increasing value with a seconds frequency.

Callers 3

sequential_setFunction · 0.85
permutated_keysetFunction · 0.85
reader_threadFunction · 0.85

Calls 2

get_monotonic_tsFunction · 0.85
ts_diffFunction · 0.85

Tested by

no test coverage detected