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/07/12 05:56:22 UTC
(opendal) branch main updated: fix(services/azdls): Fix append not handled correctly while offset==0 (#6393)
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 <gi...@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 <gi...@xuanwo.io>
* Make clippy happy
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---------
Signed-off-by: Xuanwo <gi...@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"));
}