mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-22 16:04:19 +00: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:
@@ -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