MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_watcher_index_failure_count

Function cbm_watcher_index_failure_count

src/watcher/watcher.c:1280–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280int cbm_watcher_index_failure_count(cbm_watcher_t *w, const char *project_name) {
1281 if (!w || !project_name) {
1282 return -1;
1283 }
1284 cbm_mutex_lock(&w->projects_lock);
1285 project_state_t *s = cbm_ht_get(w->projects, project_name);
1286 int failures = s ? s->index_failures : -1;
1287 cbm_mutex_unlock(&w->projects_lock);
1288 return failures;
1289}
1290
1291bool cbm_watcher_project_info(cbm_watcher_t *w, const char *project_name,
1292 cbm_watcher_project_info_t *out) {

Callers 1

test_watcher.cFile · 0.85

Calls 3

cbm_mutex_lockFunction · 0.85
cbm_ht_getFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected