diff options
| author | chrislu <chris.lu@gmail.com> | 2022-05-06 01:51:28 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-05-06 01:51:28 -0700 |
| commit | b2a43dd044123d244be26c87155187d211be1c49 (patch) | |
| tree | 7dc5edc901f204b2da91f245eb44abae1b04df29 /weed/filer/arangodb/arangodb_store.go | |
| parent | d5fe5d12b74d65a65138de62e9d98cfb3bac14de (diff) | |
| parent | a69bf53405d703f29f7b8ca358c67840c2876499 (diff) | |
| download | seaweedfs-b2a43dd044123d244be26c87155187d211be1c49.tar.xz seaweedfs-b2a43dd044123d244be26c87155187d211be1c49.zip | |
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/filer/arangodb/arangodb_store.go')
| -rw-r--r-- | weed/filer/arangodb/arangodb_store.go | 4 |
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{ |
