fix: keep missing-writer binding error out of pressure wait

This commit is contained in:
pingqiu committed 2026-11-18 15:17:39 -08:00
1 parent 8529530c4b
commit ce1cba2f82
1 file changed
+4 -2
+4 -2
View File
@@ -410,8 +410,10 @@ func (s *WALStore) walUsedFraction() float64 {
}
w := s.v3.w
if w == nil {
return 1
} // recovery/reset has not admitted a writer yet
// Not a capacity decision: append must retain its typed binding refusal
// without waiting for pressure that cannot be relieved before Recover.
return 0
}
d, floor, valid := s.v3.pub.walSnapshotV3()
w.mu.Lock()
defer w.mu.Unlock()