cor confirmed the migration write-new / tmp+rename invariant the hard-link backup relies on — with one exception: the native shared mmap `_id_mapper/*` is mutated IN PLACE (msync + a rebuild truncate+re-inject), the same category as the tx-log. A hard-linked snapshot of it would be corrupted by a live in-place mutation reaching through the shared inode, so the backup would not be a faithful pre-upgrade copy. Add a SNAPSHOT_BYTE_COPY_DIRS set (`_id_mapper`) so snapshotToDirectory byte-copies every file under it (the directory analogue of SNAPSHOT_BYTE_COPY_PATHS); the id map is bounded, so the copy cost is small. Everything else (SSTables / .dkann / manifests / objects, all tmp+rename) still hard-links. Test: `_id_mapper/*` gets an independent inode + faithful content; a regular file stays hard-linked. |
||
|---|---|---|
| .. | ||
| api | ||
| benchmarks | ||
| comprehensive | ||
| configs | ||
| fixtures/import | ||
| helpers | ||
| integration | ||
| integrations | ||
| performance | ||
| regression | ||
| scripts | ||
| transaction | ||
| unit | ||
| vfs | ||
| critical-neural-validation.test.ts | ||
| critical-performance-benchmark.test.ts | ||
| model-loading.test.ts | ||
| package-size-breakdown.test.ts | ||
| package-size-limit.test.ts | ||
| setup-integration.ts | ||
| setup-semantic.ts | ||
| setup-unit.ts | ||
| setup.ts | ||
| type-utils.unit.test.ts | ||