mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-05 00:20:27 +08:00
bfs:同一个Hash同时只能有一个Writer,避免多线程读冲突
This commit is contained in:
@@ -95,8 +95,6 @@ func (this *FS) OpenFileWriter(hash string, bodySize int64, isPartial bool) (*Fi
|
||||
return nil, errors.New("invalid body size for partial content")
|
||||
}
|
||||
|
||||
// TODO 限制同一个hash同时只能有一个Writer
|
||||
|
||||
bFile, err := this.openBFileForHashWriting(hash)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user