未验证 提交 e5f0c695 编写于 作者: S satoru 提交者: GitHub

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

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