fix: include index files in GC listing (#8327)

* fix: include index files in GC listing

Signed-off-by: discord9 <discord9@163.com>

* chore: filter GC index listing to puffins

Signed-off-by: discord9 <discord9@163.com>

* chore: simplify GC index listing stream

Signed-off-by: discord9 <discord9@163.com>

---------

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2026-06-24 12:40:10 +08:00
committed by GitHub
parent 019a913f7c
commit 758a166325
2 changed files with 70 additions and 9 deletions
+2 -1
View File
@@ -108,7 +108,8 @@ pub struct FileRefsManifest {
#[derive(Clone, Default, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct GcReport {
/// deleted files per region
/// Deleted SST/parquet file ids per region. Index-only deletions are reported via
/// `deleted_indexes` because a naked `FileId` cannot distinguish index versions.
/// TODO(discord9): change to `RemovedFile`?
pub deleted_files: HashMap<RegionId, Vec<FileId>>,
pub deleted_indexes: HashMap<RegionId, Vec<(FileId, IndexVersion)>>,