A partial trailing record was skipped, so its key read as absent and
-pruneEntries could delete an entry the source still held.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With -restoreFrom and -pruneEntries, a missing needle the source could
not be read for (an unreadable .idx or a .dat read error), or held
intact but skipped (a cipher-key chunk, a volume-level manifest), let
the entry be pruned, deleting the file whose bytes were on hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pointed at a data directory, the restore source read every .idx into
memory before verification began, though missing chunks usually name
few of those volumes, and one unreadable .idx stopped the whole run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restore source opens <collection>_<vid>.dat/.idx or <vid>.dat/.idx files
read-only and maps each key to its last live .idx record. A later tombstone
does not hide an earlier record, since a filer may still reference the
needle. Reads check the record's key, the file id's cookie and the CRC.