You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ho...@apache.org on 2024/06/27 03:21:45 UTC

(opendal) branch write-with-concurrent updated (093ed52154 -> 9856409df5)

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

hoslo pushed a change to branch write-with-concurrent
in repository https://gitbox.apache.org/repos/asf/opendal.git


 discard 093ed52154 feat: fix write concurrent
     add 3baf71ee77 docs: Add README and rustdoc for fuse3_opendal (#4813)
     new 9856409df5 feat: fix write concurrent

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   (093ed52154)
            \
             N -- N -- N   refs/heads/write-with-concurrent (9856409df5)

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:


(opendal) 01/01: feat: fix write concurrent

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

hoslo pushed a commit to branch write-with-concurrent
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 9856409df5c979ebbc19b8630c2b7eca790ca6d7
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Jun 26 22:14:51 2024 +0800

    feat: fix write concurrent
---
 core/src/types/operator/operator_futures.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/types/operator/operator_futures.rs b/core/src/types/operator/operator_futures.rs
index 4d16680087..2efe129041 100644
--- a/core/src/types/operator/operator_futures.rs
+++ b/core/src/types/operator/operator_futures.rs
@@ -300,7 +300,7 @@ impl<F: Future<Output = Result<()>>> FutureWrite<F> {
 
     /// Set the maximum concurrent write task amount.
     pub fn concurrent(self, v: usize) -> Self {
-        self.map(|(args, bs)| (args.with_chunk(v), bs))
+        self.map(|(args, bs)| (args.with_concurrent(v), bs))
     }
 
     /// Set the content type of option