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

Function mcp_search_cache_close

tests/test_mcp.c:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static bool mcp_search_cache_close(mcp_search_cache_t *cache) {
276 restore_cache_dir(cache->saved_cache);
277 free(cache->saved_cache);
278 cache->saved_cache = NULL;
279 return th_rmtree(cache->path) == 0;
280}
281static bool mcp_snapshot_read_hook_probe(void *context, const char *absolute_path) {
282 const char *rejected_fragment = context;
283 return !rejected_fragment || !absolute_path || !strstr(absolute_path, rejected_fragment);

Callers 1

test_mcp.cFile · 0.85

Calls 2

restore_cache_dirFunction · 0.85
th_rmtreeFunction · 0.85

Tested by

no test coverage detected