Partial Content每次写入缓存时都检查Content-MD5是否一致

This commit is contained in:
GoEdgeLab
2024-05-07 20:15:47 +08:00
parent c463b2a053
commit 8a46b87095
2 changed files with 17 additions and 0 deletions

View File

@@ -294,6 +294,10 @@ func (this *PartialFileWriter) IsNew() bool {
return this.isNew && len(this.ranges.Ranges) == 0
}
func (this *PartialFileWriter) Ranges() *PartialRanges {
return this.ranges
}
func (this *PartialFileWriter) remove() {
_ = fsutils.Remove(this.rawWriter.Name())