diff options
| author | zzq09494 <zzq09494@ly.com> | 2022-03-17 10:18:23 +0800 |
|---|---|---|
| committer | zzq09494 <zzq09494@ly.com> | 2022-03-17 10:18:23 +0800 |
| commit | a93c4947bae0dcf4a276aedf9f84785ccf83f27a (patch) | |
| tree | 0ea6e95316df79ed3917a452885125d7d0ea5acd /weed/server/filer_server_handlers_write_cipher.go | |
| parent | 2aa9d9f84ac466e348821066f6332a8a5b777d47 (diff) | |
| download | seaweedfs-a93c4947bae0dcf4a276aedf9f84785ccf83f27a.tar.xz seaweedfs-a93c4947bae0dcf4a276aedf9f84785ccf83f27a.zip | |
filer: support uploading file without needEnsureParentDir
Diffstat (limited to 'weed/server/filer_server_handlers_write_cipher.go')
| -rw-r--r-- | weed/server/filer_server_handlers_write_cipher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/filer_server_handlers_write_cipher.go b/weed/server/filer_server_handlers_write_cipher.go index 14fa10e2c..5e31efba4 100644 --- a/weed/server/filer_server_handlers_write_cipher.go +++ b/weed/server/filer_server_handlers_write_cipher.go @@ -93,7 +93,7 @@ func (fs *FilerServer) encrypt(ctx context.Context, w http.ResponseWriter, r *ht Size: int64(pu.OriginalDataSize), } - if dbErr := fs.filer.CreateEntry(ctx, entry, false, false, nil); dbErr != nil { + if dbErr := fs.filer.CreateEntry(ctx, entry, false, false, nil,true); dbErr != nil { fs.filer.DeleteChunks(entry.Chunks) err = dbErr filerResult.Error = dbErr.Error() |
