docs: clarify conservative map birth and captured frontier

This commit is contained in:
pingqiu committed 2026-11-19 13:36:59 -08:00
1 parent 29b3d2a30d
commit 4e53dbcb36
1 file changed
+3 -2
+3 -2
View File
@@ -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()