You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/05/21 08:00:00 UTC

(opendal) branch main updated: fix(services/s3): Remove not needed check for batch delete (#6206)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 074fa7a81 fix(services/s3): Remove not needed check for batch delete (#6206)
074fa7a81 is described below

commit 074fa7a81f1d72b3d9b2ac7432dd3f1abec562f5
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed May 21 15:59:54 2025 +0800

    fix(services/s3): Remove not needed check for batch delete (#6206)
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 core/src/services/s3/delete.rs | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/core/src/services/s3/delete.rs b/core/src/services/s3/delete.rs
index f0912f7f1..c1ac1fb51 100644
--- a/core/src/services/s3/delete.rs
+++ b/core/src/services/s3/delete.rs
@@ -65,15 +65,9 @@ impl oio::BatchDelete for S3Deleter {
 
         let bs = resp.into_body();
 
-        let mut result: DeleteObjectsResult =
+        let result: DeleteObjectsResult =
             quick_xml::de::from_reader(bs.reader()).map_err(new_xml_deserialize_error)?;
 
-        // If no object is deleted, return directly.
-        if result.deleted.is_empty() {
-            let err = result.error.remove(0);
-            return Err(parse_delete_objects_result_error(err));
-        }
-
         let mut batched_result = BatchDeleteResult {
             succeeded: Vec::with_capacity(result.deleted.len()),
             failed: Vec::with_capacity(result.error.len()),