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 2026/07/31 09:01:43 UTC

(opendal) branch xuanwo/fix-cpp-reader-options-build created (now da9aa005a)

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

Xuanwo pushed a change to branch xuanwo/fix-cpp-reader-options-build
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at da9aa005a fix(bindings/cpp): construct reader with options

This branch includes the following new commits:

     new da9aa005a fix(bindings/cpp): construct reader with options

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.



(opendal) 01/01: fix(bindings/cpp): construct reader with options

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

Xuanwo pushed a commit to branch xuanwo/fix-cpp-reader-options-build
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit da9aa005aeb9793ed79bd5de94638389263cbdcc
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Fri Jul 31 16:59:36 2026 +0800

    fix(bindings/cpp): construct reader with options
---
 bindings/cpp/src/lib.rs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bindings/cpp/src/lib.rs b/bindings/cpp/src/lib.rs
index 794e1818c..6aa974207 100644
--- a/bindings/cpp/src/lib.rs
+++ b/bindings/cpp/src/lib.rs
@@ -648,10 +648,9 @@ impl Operator {
                 self.0.stat_options(path, stat_opts)?.content_length()
             }
         };
-        let reader = Box::into_raw(Box::new(Reader(
-            self.0
-                .reader_options(path, opts)?
-                .into_std_read(0..content_length)?,
+        let reader = Box::into_raw(Box::new(Reader::new(
+            self.0.reader_options(path, opts)?,
+            content_length,
         )));
         Ok(reader)
     }