aboutsummaryrefslogtreecommitdiff
path: root/weed/operation
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-20 08:15:49 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-20 08:15:49 -0700
commit97239ce6f109448e1f0488db31a84d40837cb168 (patch)
treed032b707fbb1d5a886fcace22ec065004f3109da /weed/operation
parenta735fd767cbda1fa17fd2aeb963707c8b18adc1d (diff)
downloadseaweedfs-97239ce6f109448e1f0488db31a84d40837cb168.tar.xz
seaweedfs-97239ce6f109448e1f0488db31a84d40837cb168.zip
rename filechunk is_gzipped to is_compressed
Diffstat (limited to 'weed/operation')
-rw-r--r--weed/operation/upload_content.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 7216853ac..8c8b02a8f 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -35,13 +35,13 @@ type UploadResult struct {
func (uploadResult *UploadResult) ToPbFileChunk(fileId string, offset int64) *filer_pb.FileChunk {
return &filer_pb.FileChunk{
- FileId: fileId,
- Offset: offset,
- Size: uint64(uploadResult.Size),
- Mtime: time.Now().UnixNano(),
- ETag: uploadResult.ETag,
- CipherKey: uploadResult.CipherKey,
- IsGzipped: uploadResult.Gzip > 0,
+ FileId: fileId,
+ Offset: offset,
+ Size: uint64(uploadResult.Size),
+ Mtime: time.Now().UnixNano(),
+ ETag: uploadResult.ETag,
+ CipherKey: uploadResult.CipherKey,
+ IsCompressed: uploadResult.Gzip > 0,
}
}