mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
Route upload-session chunk liveness through the mark-time reference scan instead of the delete-time cleanup in gc-deleted. gc-touched now checks upload_session_chunk before marking a chunk, so referenced chunks freeze and only orphans are marked. The freeze path re-verifies references under row locks, which also closes the stale-freeze race for every scanned bucket. gc-deleted drops its upload-session special case: deferred rows keep their mappings until the final give-up, and a live reference aborts the chunk loud. Closes #12302 AI-assisted-by: muse-spark-1.3-contributor