未验证 提交 9f8a7563 编写于 作者: D Davies Liu 提交者: GitHub

Revert "The lock should not be released immediately after it is acquired" (#32)

* Revert "The lock should not be released immediately after it is acquired (#29)"

This reverts commit e5f0c695.

* Update writer.go
上级 e5f0c695
......@@ -355,11 +355,7 @@ func (f *fileWriter) Flush(ctx meta.Context) syscall.Errno {
}
func (f *fileWriter) Close(ctx meta.Context) syscall.Errno {
defer func() {
f.Lock()
f.w.free(f)
f.Unlock()
}()
defer f.w.free(f)
return f.Flush(ctx)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册