fix: invalidate stale page analysis when a re-crawl overwrites a page
Deterministic per-page storage keys mean a re-crawl overwrites the image but the pages row survives the upsert, so analysis keyed to page_id (page_analysis/ search_doc, OCR, auto-tags, content-warnings) stayed stale forever and force=false re-enqueue never re-analyzed it — poisoning search + the derived manga_content_warnings (audit DB-1). persist_pages now detects conflict-updated pages via xmax and clears their four derived tables in the same tx (the content-warnings DELETE fires the mcw_* triggers), returning them to unanalyzed so they re-derive. Tested. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
@@ -1558,7 +1558,7 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
||||
|
||||
[[package]]
|
||||
name = "mangalord"
|
||||
version = "0.128.11"
|
||||
version = "0.128.12"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"argon2",
|
||||
|
||||
Reference in New Issue
Block a user