You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/04/04 20:33:52 UTC

[arrow] branch master updated: ARROW-16110: [C++] GcsFileSystem::Make ignores IOContext

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

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a3bb0dd16 ARROW-16110: [C++] GcsFileSystem::Make ignores IOContext
7a3bb0dd16 is described below

commit 7a3bb0dd16809530ac6a2882719a42371cd414ce
Author: Rok <ro...@mihevc.org>
AuthorDate: Tue Apr 5 05:33:41 2022 +0900

    ARROW-16110: [C++] GcsFileSystem::Make ignores IOContext
    
    This is to resolve [ARROW-16110](https://issues.apache.org/jira/browse/ARROW-16110).
    
    Closes #12788 from rok/ARROW-16110
    
    Authored-by: Rok <ro...@mihevc.org>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 cpp/src/arrow/filesystem/gcsfs.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cpp/src/arrow/filesystem/gcsfs.cc b/cpp/src/arrow/filesystem/gcsfs.cc
index 7a07dfe5d5..0b0bba6766 100644
--- a/cpp/src/arrow/filesystem/gcsfs.cc
+++ b/cpp/src/arrow/filesystem/gcsfs.cc
@@ -846,8 +846,7 @@ Result<std::shared_ptr<io::OutputStream>> GcsFileSystem::OpenAppendStream(
 std::shared_ptr<GcsFileSystem> GcsFileSystem::Make(const GcsOptions& options,
                                                    const io::IOContext& context) {
   // Cannot use `std::make_shared<>` as the constructor is private.
-  return std::shared_ptr<GcsFileSystem>(
-      new GcsFileSystem(options, io::default_io_context()));
+  return std::shared_ptr<GcsFileSystem>(new GcsFileSystem(options, context));
 }
 
 GcsFileSystem::GcsFileSystem(const GcsOptions& options, const io::IOContext& context)