aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_server_handlers_write_cipher.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-11 23:37:10 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-11 23:37:10 -0700
commit1c65656fb4a64ae739b9a23a2f97f4032182015c (patch)
tree937f23d794adfcfa0cf1596cbc6825bf68f59360 /weed/server/filer_server_handlers_write_cipher.go
parente4af63a721f62c280596f626302b64729baeaee9 (diff)
downloadseaweedfs-1c65656fb4a64ae739b9a23a2f97f4032182015c.tar.xz
seaweedfs-1c65656fb4a64ae739b9a23a2f97f4032182015c.zip
s3: add option to fsync buckets
Diffstat (limited to 'weed/server/filer_server_handlers_write_cipher.go')
-rw-r--r--weed/server/filer_server_handlers_write_cipher.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_server_handlers_write_cipher.go b/weed/server/filer_server_handlers_write_cipher.go
index cbcf8a05c..ebf277984 100644
--- a/weed/server/filer_server_handlers_write_cipher.go
+++ b/weed/server/filer_server_handlers_write_cipher.go
@@ -17,9 +17,9 @@ import (
// handling single chunk POST or PUT upload
func (fs *FilerServer) encrypt(ctx context.Context, w http.ResponseWriter, r *http.Request,
- replication string, collection string, dataCenter string, ttlSeconds int32, ttlString string) (filerResult *FilerPostResult, err error) {
+ replication string, collection string, dataCenter string, ttlSeconds int32, ttlString string, fsync bool) (filerResult *FilerPostResult, err error) {
- fileId, urlLocation, auth, err := fs.assignNewFileInfo(w, r, replication, collection, dataCenter, ttlString)
+ fileId, urlLocation, auth, err := fs.assignNewFileInfo(w, r, replication, collection, dataCenter, ttlString, fsync)
if err != nil || fileId == "" || urlLocation == "" {
return nil, fmt.Errorf("fail to allocate volume for %s, collection:%s, datacenter:%s", r.URL.Path, collection, dataCenter)