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

Function fdb_kvs_header_reset_all_stats

src/kv_instance.cc:562–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void fdb_kvs_header_reset_all_stats(struct filemgr *file)
563{
564 struct avl_node *a;
565 struct kvs_node *node;
566 struct kvs_header *kv_header = file->kv_header;
567
568 spin_lock(&kv_header->lock);
569 a = avl_first(kv_header->idx_id);
570 while (a) {
571 node = _get_entry(a, struct kvs_node, avl_id);
572 a = avl_next(&node->avl_id);
573 memset(&node->stat, 0x0, sizeof(node->stat));
574 }
575 spin_unlock(&kv_header->lock);
576}
577
578void fdb_kvs_header_copy(fdb_kvs_handle *handle,
579 struct filemgr *new_file,

Callers 2

fdb_kvs_header_copyFunction · 0.85

Calls 2

avl_firstFunction · 0.85
avl_nextFunction · 0.85

Tested by

no test coverage detected