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

Function release_config_lock

tests/test_runtime_settings.c:435–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435static void release_config_lock(void) {
436 cbm_log_set_sink(NULL);
437 cbm_log_set_level(g_lock_saved_level);
438 if (g_lock_holder) {
439 if (!sqlite3_get_autocommit(g_lock_holder))
440 (void)sqlite3_exec(g_lock_holder, "COMMIT", NULL, NULL, NULL);
441 sqlite3_close(g_lock_holder);
442 g_lock_holder = NULL;
443 }
444}
445
446static long long settings_revision(const char *cache) {
447 yyjson_doc *snapshot = read_snapshot(cache);

Callers 1

Calls 2

cbm_log_set_sinkFunction · 0.85
cbm_log_set_levelFunction · 0.85

Tested by

no test coverage detected