pub(crate) fn init_multipart_table(
cache_handle: &CacheHandle,
) -> MultipartTableHandleExpand description
Build the MultipartTableHandle used during tauri::Builder::setup,
guaranteeing a usable table no matter how broken the on-disk state is.
Cascade:
- Share the SWR cache’s redb database (best — single file handle).
- Open
$TMPDIR/brows3r_multipart_fallback.redb, auto-recreated on stale-schema bumps and finally backed byInMemoryBackendif all filesystem paths fail. - If
MultipartTable::newstill rejects the database (corrupt enough that evenbegin_write/open_tablefails), spin up a pristine in-memory redb and callMultipartTable::newon it.
Step 3 is the load-bearing change vs. the previous .expect() chain:
the app keeps starting and the multipart panel surfaces orphans by
scanning S3 directly.