aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzq09494 <zzq09494@ly.com>2022-03-19 09:15:42 +0800
committerzzq09494 <zzq09494@ly.com>2022-03-19 09:15:42 +0800
commit9f16df736ef9117f7c819e1c55ae376372144a31 (patch)
treecf3409611e627c7e27c5499b0cacd33cc721561f
parentb1a819ebd8ec0444d22c45a55fd4a1c41058e31f (diff)
downloadseaweedfs-9f16df736ef9117f7c819e1c55ae376372144a31.tar.xz
seaweedfs-9f16df736ef9117f7c819e1c55ae376372144a31.zip
fix-filer: calculation error of the method skipCheckParentDirEntry
-rw-r--r--weed/server/filer_server_handlers_write_autochunk.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go
index e4f34443d..854b35f82 100644
--- a/weed/server/filer_server_handlers_write_autochunk.go
+++ b/weed/server/filer_server_handlers_write_autochunk.go
@@ -131,7 +131,7 @@ func isAppend(r *http.Request) bool {
}
func skipCheckParentDirEntry(r *http.Request) bool {
- return r.URL.Query().Get("skipCheckParentDir") != "true"
+ return r.URL.Query().Get("skipCheckParentDir") == "true"
}
func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileName string, contentType string, so *operation.StorageOption, md5bytes []byte, fileChunks []*filer_pb.FileChunk, chunkOffset int64, content []byte) (filerResult *FilerPostResult, replyerr error) {