mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
fix: keep missing-writer binding error out of pressure wait
This commit is contained in:
1 parent
8529530c4b
commit
ce1cba2f82
1 file changed
+4
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user