mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
chunk rememober encryption or not
This commit is contained in:
parent
5a0986dca0
commit
d57559d3f7
|
@ -44,6 +44,7 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {
|
||||||
Size: uint64(uploadResult.Size),
|
Size: uint64(uploadResult.Size),
|
||||||
Mtime: time.Now().UnixNano(),
|
Mtime: time.Now().UnixNano(),
|
||||||
ETag: uploadResult.ETag,
|
ETag: uploadResult.ETag,
|
||||||
|
CipherKey: uploadResult.CipherKey,
|
||||||
IsGzipped: uploadResult.Gzip > 0,
|
IsGzipped: uploadResult.Gzip > 0,
|
||||||
}
|
}
|
||||||
entry.Chunks = append(entry.Chunks, chunk)
|
entry.Chunks = append(entry.Chunks, chunk)
|
||||||
|
|
|
@ -73,6 +73,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa
|
||||||
Offset: offset,
|
Offset: offset,
|
||||||
Size: chunk.Size,
|
Size: chunk.Size,
|
||||||
Mtime: chunk.Mtime,
|
Mtime: chunk.Mtime,
|
||||||
|
CipherKey: chunk.CipherKey,
|
||||||
ETag: chunk.ETag,
|
ETag: chunk.ETag,
|
||||||
}
|
}
|
||||||
finalParts = append(finalParts, p)
|
finalParts = append(finalParts, p)
|
||||||
|
|
Loading…
Reference in a new issue