mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
docs: clarify conservative map birth and captured frontier
This commit is contained in:
1 parent
29b3d2a30d
commit
4e53dbcb36
1 file changed
+3
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user