1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: BUSL-1.1
//! Per-engine collection reclaim handlers.
//!
//! Each file in this module unlinks the persistent on-disk surface
//! for one engine for a single `(tenant, collection)` pair. Called
//! from `execute_unregister_collection` after in-memory state has
//! been evicted but before the JSON summary is built, so the handler
//! picks up per-file byte counts for the `bytes_reclaimed` metric.
//!
//! Engines whose persistent state is either shared-redb (document,
//! document-strict, FTS, graph edges) or per-tenant / in-memory only
//! (KV, CRDT) are documented inline in the parent handler — no
//! separate file unlinks are required. The modules here cover the
//! engines that write per-collection checkpoint or partition files
//! under `{data_dir}/...`.
/// Summary of a single engine's reclaim pass. Byte counts are
/// best-effort — missing files count as 0, IO errors are warn-logged
/// and skipped (idempotent).