aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/mongodb/mongodb_store.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
committerchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
commitb2a43dd044123d244be26c87155187d211be1c49 (patch)
tree7dc5edc901f204b2da91f245eb44abae1b04df29 /weed/filer/mongodb/mongodb_store.go
parentd5fe5d12b74d65a65138de62e9d98cfb3bac14de (diff)
parenta69bf53405d703f29f7b8ca358c67840c2876499 (diff)
downloadseaweedfs-b2a43dd044123d244be26c87155187d211be1c49.tar.xz
seaweedfs-b2a43dd044123d244be26c87155187d211be1c49.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/filer/mongodb/mongodb_store.go')
-rw-r--r--weed/filer/mongodb/mongodb_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/mongodb/mongodb_store.go b/weed/filer/mongodb/mongodb_store.go
index c12354ad6..83686bfe7 100644
--- a/weed/filer/mongodb/mongodb_store.go
+++ b/weed/filer/mongodb/mongodb_store.go
@@ -107,7 +107,7 @@ func (store *MongodbStore) UpdateEntry(ctx context.Context, entry *filer.Entry)
return fmt.Errorf("encode %s: %s", entry.FullPath, err)
}
- if len(entry.Chunks) > 50 {
+ if len(entry.Chunks) > filer.CountEntryChunksForGzip {
meta = util.MaybeGzipData(meta)
}