| 117 | } |
| 118 | |
| 119 | static void cleanup_project_db(const char *cache, const char *project) { |
| 120 | if (!cache || !project) { |
| 121 | return; |
| 122 | } |
| 123 | |
| 124 | char path[CBM_SZ_4K]; |
| 125 | snprintf(path, sizeof(path), "%s/%s.db", cache, project); |
| 126 | cbm_unlink(path); |
| 127 | snprintf(path, sizeof(path), "%s/%s.db-wal", cache, project); |
| 128 | cbm_unlink(path); |
| 129 | snprintf(path, sizeof(path), "%s/%s.db-shm", cache, project); |
| 130 | cbm_unlink(path); |
| 131 | } |
| 132 | |
| 133 | #define MCP_MUTATION_GUARD_MAX_EVENTS 16 |
| 134 |