From 73ae35ffef33ad987b810948312b0372b635397a Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Wed, 18 Sep 2024 17:11:11 +0300 Subject: [PATCH] Fix errors. --- tiledb/CMakeLists.txt | 2 +- tiledb/sm/filesystem/s3.cc | 1 + tiledb/sm/filesystem/s3.h | 1 - tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc | 4 ++++ tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc | 4 ++++ tiledb/sm/filesystem/s3/STSCredentialsProvider.cc | 4 ++++ 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tiledb/CMakeLists.txt b/tiledb/CMakeLists.txt index 1654cc499c2..d018eccfdfc 100644 --- a/tiledb/CMakeLists.txt +++ b/tiledb/CMakeLists.txt @@ -192,7 +192,7 @@ set(TILEDB_CORE_SOURCES ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/posix.cc ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3.cc ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3_thread_pool_executor.cc - ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3/AwsCredentialsProviderChain.cc + ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3/STSCredentialsProvider.cc ${TILEDB_CORE_INCLUDE_DIR}/tiledb/sm/filesystem/s3/STSProfileWithWebIdentityCredentialsProvider.cc diff --git a/tiledb/sm/filesystem/s3.cc b/tiledb/sm/filesystem/s3.cc index 8ce7908b6cb..f789e592a06 100644 --- a/tiledb/sm/filesystem/s3.cc +++ b/tiledb/sm/filesystem/s3.cc @@ -1409,6 +1409,7 @@ Status S3::init_client() const { credentials_provider_ = make_shared< tiledb::sm::filesystem::s3::DefaultAWSCredentialsProviderChain>( HERE(), client_config_); + break; case 1: case 2: throw S3Exception( diff --git a/tiledb/sm/filesystem/s3.h b/tiledb/sm/filesystem/s3.h index fa54d792eeb..d7e286778bd 100644 --- a/tiledb/sm/filesystem/s3.h +++ b/tiledb/sm/filesystem/s3.h @@ -55,7 +55,6 @@ #undef GetObject #include -#include #include #include #include diff --git a/tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc b/tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc index 8c410ebaa3b..ccb866136af 100644 --- a/tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc +++ b/tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc @@ -40,6 +40,8 @@ * SPDX-License-Identifier: Apache-2.0. */ +#ifdef HAVE_S3 + #include "tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.h" #include "tiledb/common/common.h" @@ -160,3 +162,5 @@ DefaultAWSCredentialsProviderChain::DefaultAWSCredentialsProviderChain( } } } // namespace tiledb::sm::filesystem::s3 + +#endif // HAVE_S3 diff --git a/tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc b/tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc index aaa9f2f94fe..ecf80d1bf5a 100644 --- a/tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc +++ b/tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc @@ -40,6 +40,8 @@ * SPDX-License-Identifier: Apache-2.0. */ +#ifdef HAVE_S3 + #include "tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.h" #include "tiledb/common/common.h" @@ -383,3 +385,5 @@ void GeneralHTTPCredentialsProvider::RefreshIfExpired() { Reload(); } } // namespace tiledb::sm::filesystem::s3 + +#endif // HAVE_S3 diff --git a/tiledb/sm/filesystem/s3/STSCredentialsProvider.cc b/tiledb/sm/filesystem/s3/STSCredentialsProvider.cc index 4f6dcab94d3..23e67139325 100644 --- a/tiledb/sm/filesystem/s3/STSCredentialsProvider.cc +++ b/tiledb/sm/filesystem/s3/STSCredentialsProvider.cc @@ -40,6 +40,8 @@ * SPDX-License-Identifier: Apache-2.0. */ +#ifdef HAVE_S3 + #include "tiledb/sm/filesystem/s3/STSCredentialsProvider.h" #include "tiledb/common/common.h" @@ -227,3 +229,5 @@ void STSAssumeRoleWebIdentityCredentialsProvider::RefreshIfExpired() { Reload(); } } // namespace tiledb::sm::filesystem::s3 + +#endif