1 Commits
Author SHA1 Message Date
dreondre f00e68bddb Verify FTS rebuild with CheckFTS instead of trusting the rebuild exit code
automatic and reindex both reported FTS Rebuild PASS / "successful" based
solely on whether the rebuild SQL statement itself errored, never re-running
CheckFTS (the same function used to detect the damage) to confirm the index
is actually clean afterward.

Call CheckFTS again after DoFTSRebuild in both paths and gate the PASS/FAIL
message on its result. Tested live against a database with confirmed FTS
corruption (see issue #289): the new verification step now visibly re-checks
after rebuilding and only reports success once CheckFTS independently
confirms it.

Fixes #289
2026-08-06 15:22:51 -04:00