From 4e53dbcb36c8c59f1323451f21c25542a6826f58 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 13:36:59 -0800 Subject: [PATCH] docs: clarify conservative map birth and captured frontier --- seaweed-block/core/storage/chunk_birth.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seaweed-block/core/storage/chunk_birth.go b/seaweed-block/core/storage/chunk_birth.go index 32e3a1ee95..c6862223a8 100644 --- a/seaweed-block/core/storage/chunk_birth.go +++ b/seaweed-block/core/storage/chunk_birth.go @@ -1,8 +1,9 @@ package storage // The caller holds captureMu exclusive, with no layer state lock held. -// An owned-map max is the newest local write in that chunk; base fills do -// not advance it. Other engines use the cut frontier as an upper bound. +// An owned-map max is conservative: recovery can drop an unacked suffix +// while retaining its maximum. Bound it by the same-barrier cut frontier; +// the captured image has no later writes. Preserve lower inherited births. func (l *chunkLayerImpl) captureBirths(candidates map[uint64]bool, frontier uint64) map[uint64]uint64 { out := make(map[uint64]uint64, len(candidates)) l.s.mu.RLock()