This repository was archived by the owner on Jul 4, 2026. It is now read-only.
Commit 3e9b103
committed
fix(server): re-check upload TTL under sess.mu to close evict race
A concurrent evictExpired could delete a session from the map after
Append fetched it but before Append acquired sess.mu. Append would
then write bytes and report success, while eviction proceeded to
close the tempfile — silently discarding the just-acknowledged bytes.1 parent 2e2b4e5 commit 3e9b103
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
0 commit comments