Skip to content

Commit 3b97a7a

Browse files
committed
fix: improve lock management in commitThread
1 parent 1c317d2 commit 3b97a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vfs/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (c *chunkWriter) commitThread() {
218218
c.slices = c.slices[1:]
219219
}
220220
f.freeChunk(c)
221-
defer f.Unlock()
221+
f.Unlock()
222222
}
223223

224224
type fileWriter struct {

0 commit comments

Comments
 (0)