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 2d669065b fix(services/azdls): Fix append not handled correctly while 
offset==0 (#6393)
2d669065b is described below

commit 2d669065bdb0c42b97232967fcb0c7b6641e8404
Author: Xuanwo <git...@xuanwo.io>
AuthorDate: Sat Jul 12 13:56:16 2025 +0800

    fix(services/azdls): Fix append not handled correctly while offset==0 
(#6393)
    
    * fix(services/azdls): Fix append not handled correctly while offset==0
    
    Signed-off-by: Xuanwo <git...@xuanwo.io>
    
    * Make clippy happy
    
    Signed-off-by: Xuanwo <git...@xuanwo.io>
    
    ---------
    
    Signed-off-by: Xuanwo <git...@xuanwo.io>
---
 core/src/services/azdls/writer.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/src/services/azdls/writer.rs 
b/core/src/services/azdls/writer.rs
index d2d8ea0af..e496bf14d 100644
--- a/core/src/services/azdls/writer.rs
+++ b/core/src/services/azdls/writer.rs
@@ -101,10 +101,9 @@ impl oio::AppendWrite for AzdlsWriter {
     async fn append(&self, offset: u64, size: u64, body: Buffer) -> 
Result<Metadata> {
         if offset == 0 {
             let resp = self.core.azdls_create(&self.path, FILE, 
&self.op).await?;
-            let meta = AzdlsWriter::parse_metadata(resp.headers())?;
             let status = resp.status();
             match status {
-                StatusCode::CREATED | StatusCode::OK => return Ok(meta),
+                StatusCode::CREATED | StatusCode::OK => {}
                 _ => {
                     return 
Err(parse_error(resp).with_operation("Backend::azdls_create_request"));
                 }

Reply via email to