Remove the project DB (and its WAL/SHM) so the next index is a full one. */
| 15327 | |
| 15328 | /* Remove the project DB (and its WAL/SHM) so the next index is a full one. */ |
| 15329 | static void doccand_clear(const char *cache) { |
| 15330 | char path[CBM_SZ_4K]; |
| 15331 | if (!doccand_project_db(cache, path, sizeof(path))) { |
| 15332 | return; |
| 15333 | } |
| 15334 | char side[CBM_SZ_4K + 8]; |
| 15335 | snprintf(side, sizeof(side), "%s-wal", path); |
| 15336 | cbm_unlink(side); |
| 15337 | snprintf(side, sizeof(side), "%s-shm", path); |
| 15338 | cbm_unlink(side); |
| 15339 | cbm_unlink(path); |
| 15340 | } |
| 15341 | |
| 15342 | /* The project's doc_link_candidates rows (0 without the table); -1 on an |
| 15343 | * error. */ |
no test coverage detected