mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 01:47:24 +08:00
refactoring
some previous chunk etag was using md5, which should be wrong.
This commit is contained in:
@@ -187,15 +187,7 @@ func (pages *ContinuousDirtyPages) saveToStorage(reader io.Reader, offset int64,
|
||||
}
|
||||
pages.f.wfs.chunkCache.SetChunk(fileId, data)
|
||||
|
||||
return &filer_pb.FileChunk{
|
||||
FileId: fileId,
|
||||
Offset: offset,
|
||||
Size: uint64(size),
|
||||
Mtime: time.Now().UnixNano(),
|
||||
ETag: uploadResult.ETag,
|
||||
CipherKey: uploadResult.CipherKey,
|
||||
IsGzipped: uploadResult.Gzip > 0,
|
||||
}, nil
|
||||
return uploadResult.ToPbFileChunk(fileId, offset), nil
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user