mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-14 22:56:36 +08:00
提升Partial Content的范围数据(ranges)写入效率
This commit is contained in:
@@ -228,6 +228,7 @@ func (this *PartialFileWriter) Discard() error {
|
||||
_ = this.rawWriter.Close()
|
||||
fsutils.WriteEnd()
|
||||
|
||||
SharedPartialRangesQueue.Delete(this.rangePath)
|
||||
_ = os.Remove(this.rangePath)
|
||||
|
||||
err := os.Remove(this.rawWriter.Name())
|
||||
@@ -261,5 +262,7 @@ func (this *PartialFileWriter) IsNew() bool {
|
||||
|
||||
func (this *PartialFileWriter) remove() {
|
||||
_ = os.Remove(this.rawWriter.Name())
|
||||
|
||||
SharedPartialRangesQueue.Delete(this.rangePath)
|
||||
_ = os.Remove(this.rangePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user