Browse Source

revert skip deletion error, since the error file was not found is already skipped on the side of the grpc function

pull/5760/head
Konstantin Lebedev 6 months ago
parent
commit
e8806d97fd
  1. 7
      weed/s3api/s3api_object_handlers_delete.go

7
weed/s3api/s3api_object_handlers_delete.go

@ -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 {

Loading…
Cancel
Save