Skip to content
quarry Check-in [24586a4771]
Login

Check-in [24586a4771]

Overview
Comment:doc index: survive a rebuild, and never wipe on a failed read

Reset drops every derived table, doc rows included, and the doc pass only fired on a tip change or once at boot — so a reindex left documentation silently unsearchable until somebody happened to commit, which on a mirror of a quiet project is never. Observed live: fossil's 173 documents went to zero after a rebuild and stayed there.

ReplaceDocs swaps the whole set, so a pass that found documents and could not read them would overwrite a good index with nothing. It now keeps the previous set and says so. A tree with genuinely no documents still writes an empty set, which is true.

Timelines: family | ancestors | descendants | both | doc-reindex
Files: files | file ages | folders
SHA3-256: 24586a4771123f16d6c1a4e5b7fd1c742ae51cdfee02342a497cce5c6048e3d4
User & Date: dmestas on 2026-08-24 20:29:25.452
Other Links: branch diff | manifest | tags
Context
2026-08-24
20:29
merge doc-reindex into trunk check-in: 1631ff8ecc user: dmestas tags: trunk
20:29
doc index: survive a rebuild, and never wipe on a failed read

Reset drops every derived table, doc rows included, and the doc pass only fired on a tip change or once at boot — so a reindex left documentation silently unsearchable until somebody happened to commit, which on a mirror of a quiet project is never. Observed live: fossil's 173 documents went to zero after a rebuild and stayed there.

ReplaceDocs swaps the whole set, so a pass that found documents and could not read them would overwrite a good index with nothing. It now keeps the previous set and says so. A tree with genuinely no documents still writes an empty set, which is true. closed check-in: 24586a4771 user: dmestas tags: doc-reindex

20:21
merge doc-search into trunk check-in: 547934f37f user: dmestas tags: trunk
Changes