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

Function ei_cleanup

tests/test_edge_imports.c:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static void ei_cleanup(EILangProj *lp, cbm_store_t *store) {
127 if (store) cbm_store_close(store);
128 if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; }
129 free(lp->project);
130 lp->project = NULL;
131 th_rmtree(lp->tmpdir);
132 unlink(lp->dbpath);
133 char wal[600], shm[600];
134 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
135 unlink(wal);
136 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
137 unlink(shm);
138}
139
140/* Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on
141 * failure so failures are self-diagnosable without re-running manually. */

Callers 1

ei_edge_presentFunction · 0.85

Calls 3

cbm_store_closeFunction · 0.85
cbm_mcp_server_freeFunction · 0.85
th_rmtreeFunction · 0.85

Tested by

no test coverage detected