| 29 | } |
| 30 | |
| 31 | static void dv_cleanup(const char *path) { |
| 32 | remove(path); |
| 33 | char aux[640]; |
| 34 | snprintf(aux, sizeof(aux), "%s-wal", path); |
| 35 | remove(aux); |
| 36 | snprintf(aux, sizeof(aux), "%s-shm", path); |
| 37 | remove(aux); |
| 38 | } |
| 39 | |
| 40 | /* Commit `count` distinct nodes to the on-disk store at `path`. */ |
| 41 | static int dv_write_nodes(const char *path, int count) { |