From 609e5ca45258b80b96af0a41484991f49bf8b1a1 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 6 Dec 2025 01:36:52 +0000 Subject: [PATCH] Display dead blob count after tracing. --- src/garbage.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/garbage.go b/src/garbage.go index 30c2a64..e3d509d 100644 --- a/src/garbage.go +++ b/src/garbage.go @@ -76,12 +76,13 @@ func TraceGarbage(ctx context.Context) error { } allBlobsCount, allBlobsSize := trieReduce(allBlobs) + liveBlobsCount, liveBlobsSize := trieReduce(liveBlobs) logc.Printf(ctx, "trace all: %d blobs, %s", allBlobsCount, datasize.ByteSize(allBlobsSize).HR()) - - liveBlobsCount, liveBlobsSize := trieReduce(liveBlobs) logc.Printf(ctx, "trace live: %d blobs, %s", liveBlobsCount, datasize.ByteSize(liveBlobsSize).HR()) + logc.Printf(ctx, "trace dead: %d blobs, %s", + allBlobsCount-liveBlobsCount, datasize.ByteSize(allBlobsSize-liveBlobsSize).HR()) return nil }