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

Function repro607_cleanup

tests/repro/repro_issue607.c:103–111  ·  view source on GitHub ↗

Best-effort cleanup of the temp cache dir + DB sidecar files. */

Source from the content-addressed store, hash-verified

101
102/* Best-effort cleanup of the temp cache dir + DB sidecar files. */
103static void repro607_cleanup(const char *tmp_cache, const char *db_path) {
104 unlink(db_path);
105 char wal[730], shm[730];
106 snprintf(wal, sizeof(wal), "%s-wal", db_path);
107 snprintf(shm, sizeof(shm), "%s-shm", db_path);
108 unlink(wal);
109 unlink(shm);
110 rmdir(tmp_cache);
111}
112
113/* ── Test 1: default (reset=false) PRESERVES the index ────────────────
114 *

Callers 1

repro_issue607.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected