aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/arangodb/arangodb_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/arangodb/arangodb_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/arangodb/arangodb_store.go')
-rw-r--r--weed/filer/arangodb/arangodb_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/arangodb/arangodb_store.go b/weed/filer/arangodb/arangodb_store.go
index 9fd1fffb3..13d14b2b0 100644
--- a/weed/filer/arangodb/arangodb_store.go
+++ b/weed/filer/arangodb/arangodb_store.go
@@ -157,7 +157,7 @@ func (store *ArangodbStore) InsertEntry(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)
}
model := &Model{
@@ -196,7 +196,7 @@ func (store *ArangodbStore) 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)
}
model := &Model{