bfs commit

This commit is contained in:
刘祥超
2024-04-30 12:38:43 +08:00
parent c7d60e01b8
commit e8538d4e34
4 changed files with 10 additions and 5 deletions

View File

@@ -256,6 +256,11 @@ func (this *FS) openBFileForHashWriting(hash string) (*BlocksFile, error) {
if ok {
// 调整当前BFile所在位置
this.mu.Lock()
if bFile.IsClosing() {
// TODO 需要重新等待打开
}
item, itemOk := this.bItemMap[bName]
if itemOk {
this.bList.Remove(item)