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