aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/mongodb/mongodb_store.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-05-05 15:34:37 -0700
committerGitHub <noreply@github.com>2022-05-05 15:34:37 -0700
commita69bf53405d703f29f7b8ca358c67840c2876499 (patch)
tree49b04327fc933d973d5eb872eec6446863467669 /weed/filer/mongodb/mongodb_store.go
parentef6c6c450e1e062de1b0197ff0e1f83060c5f3b1 (diff)
parente6d2cb59111e73d97ecaf2c02d4a6d7d04f6fc3d (diff)
downloadseaweedfs-a69bf53405d703f29f7b8ca358c67840c2876499.tar.xz
seaweedfs-a69bf53405d703f29f7b8ca358c67840c2876499.zip
Merge pull request #2996 from kmlebedev/ydb
ydb filer store
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)
}