pub async fn scan_unscanned_references(
pool: &PgPool,
vault: &Vault,
) -> AppResult<u64>Expand description
Scans the current versions that were stored before reference tracking existed (or before their format was known) for referenced CAD files. Returns how many versions were scanned.
ยงInvariants
- Permission: none (maintenance task of the server, no actor).
- Locks: none.
- Audit / notifications / webhooks: none.
- Atomic: one transaction per version (
references::store_file_referencesstores the names and setsreferences_scanned), so an interrupted run can be repeated.