This commit is contained in:
GoEdgeLab
2024-07-27 15:42:50 +08:00
parent d511145bc5
commit c19be78e0d
524 changed files with 1817 additions and 1346 deletions

View File

@@ -1,11 +1,10 @@
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cloud .
package bfs
import (
"errors"
"fmt"
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
"io"
"os"
"path/filepath"
@@ -13,6 +12,8 @@ import (
"sync"
"sync/atomic"
"time"
"github.com/TeaOSLab/EdgeNode/internal/utils/zero"
)
const BFileExt = ".b"
@@ -317,7 +318,7 @@ func (this *BlocksFile) Close() error {
}
// TODO 决定是否同步
//_ = this.sync(true)
// _ = this.sync(true)
this.isClosed = true