aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/etcd/etcd_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/etcd/etcd_store.go')
-rw-r--r--weed/filer/etcd/etcd_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/etcd/etcd_store.go b/weed/filer/etcd/etcd_store.go
index 26b9ae1f6..b2e0fedda 100644
--- a/weed/filer/etcd/etcd_store.go
+++ b/weed/filer/etcd/etcd_store.go
@@ -82,7 +82,7 @@ func (store *EtcdStore) InsertEntry(ctx context.Context, entry *filer.Entry) (er
return fmt.Errorf("encoding %s %+v: %v", entry.FullPath, entry.Attr, err)
}
- if len(entry.Chunks) > filer.CountEntryChunksForGzip {
+ if len(entry.GetChunks()) > filer.CountEntryChunksForGzip {
meta = weed_util.MaybeGzipData(meta)
}