From 691a95750efe73cf08c76bfaeca08f0c1040764f Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 30 Nov 2026 13:45:51 -0800 Subject: [PATCH] storage: describe the SPACE fixture's lazy attached shape Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/storage/chunk_record_space_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/seaweed-block/core/storage/chunk_record_space_test.go b/seaweed-block/core/storage/chunk_record_space_test.go index 55f2b5f7b2..c7824b6668 100644 --- a/seaweed-block/core/storage/chunk_record_space_test.go +++ b/seaweed-block/core/storage/chunk_record_space_test.go @@ -9,10 +9,12 @@ import ( "testing" ) -// spaceVolume attaches a layer over a 1 TiB-shaped volume (262,144 chunks, -// every one named by HEAD), reads it whole so every chunk is present, and -// runs one cut. It returns the heap growth per chunk from before the store -// was created to after the cut, with the layer still attached. +// spacePerChunk attaches a lazy fresh-from-HEAD layer over a 1 TiB-shaped +// volume (262,144 chunks, every one named by HEAD and absent locally: none +// is read), writes one block and runs one cut. It returns the heap growth +// per chunk from before the store was created to after the cut, with the +// layer still attached. It measures that attached, lazy shape, not a volume +// whose chunks are all present locally. func spacePerChunk(t *testing.T, shadow bool) float64 { t.Helper() const n, bs = 262144, 512