You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/07/21 16:14:53 UTC

[incubator-opendal] branch fix-obs-unsized-writer updated (2424d8ad1 -> 1f730c608)

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

suyanhanx pushed a change to branch fix-obs-unsized-writer
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


    omit 2424d8ad1 fix(services/obs): remove content-length check in baackend
     new 1f730c608 fix(services/obs): remove content-length check in baackend

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (2424d8ad1)
            \
             N -- N -- N   refs/heads/fix-obs-unsized-writer (1f730c608)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/src/services/obs/backend.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[incubator-opendal] 01/01: fix(services/obs): remove content-length check in baackend

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch fix-obs-unsized-writer
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 1f730c608a6fffd19b5cb144b0dfdaa28b6776b1
Author: suyanhanx <su...@gmail.com>
AuthorDate: Sat Jul 22 00:05:27 2023 +0800

    fix(services/obs): remove content-length check in baackend
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 core/src/services/obs/backend.rs | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs
index 470c06d05..cd7811abd 100644
--- a/core/src/services/obs/backend.rs
+++ b/core/src/services/obs/backend.rs
@@ -91,7 +91,7 @@ use crate::*;
 ///
 ///     Ok(())
 /// }
-///
+///```
 
 const DEFAULT_WRITE_MIN_SIZE: usize = 100 * 1024;
 
@@ -447,13 +447,6 @@ impl Accessor for ObsBackend {
     }
 
     async fn write(&self, path: &str, args: OpWrite) -> Result<(RpWrite, Self::Writer)> {
-        if args.content_length().is_none() {
-            return Err(Error::new(
-                ErrorKind::Unsupported,
-                "write without content length is not supported",
-            ));
-        }
-
         Ok((
             RpWrite::default(),
             ObsWriter::new(self.core.clone(), path, args),