mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-17 19:48:35 +02:00
revert skip deletion error, since the error file was not found is already skipped on the side of the grpc function
This commit is contained in:
1 parent
b8121e4b24
commit
e8806d97fd
1 file changed
+3
-4
@@ -32,10 +32,9 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Reque
|
||||
|
||||
s3a.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {
|
||||
|
||||
err := doDeleteEntry(client, dir, name, true, false)
|
||||
if err != nil {
|
||||
// skip deletion error, usually the file is not found
|
||||
return nil
|
||||
if err := doDeleteEntry(client, dir, name, true, false); err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return err
|
||||
}
|
||||
|
||||
if s3a.option.AllowEmptyFolder {
|
||||
|
||||
Reference in new issue
Block a user