MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / stat_thread

Function stat_thread

plugins/dbqueuedb/dbqueuedb.c:647–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645};
646
647static void *stat_thread(void *argsptr)
648{
649 comdb2_name_thread(__func__);
650 struct statthrargs *args = argsptr;
651 thread_started("dbque stat");
652 backend_thread_event(args->db->dbenv, COMDB2_THR_EVENT_START_RDONLY);
653 stat_thread_int(args->db, args->fullstat, args->walk_queue);
654 backend_thread_event(args->db->dbenv, COMDB2_THR_EVENT_DONE_RDONLY);
655 free(args);
656 return NULL;
657}
658
659static void queue_stat(struct dbtable *db, int full, int walk_queue, int blocking)
660{

Callers

nothing calls this directly

Calls 5

comdb2_name_threadFunction · 0.85
thread_startedFunction · 0.85
backend_thread_eventFunction · 0.85
stat_thread_intFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected