Skip to content

Commit

Permalink
Fix errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Sep 18, 2024
1 parent 03b5e9f commit 73ae35f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiledb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tiledb/sm/filesystem/s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion tiledb/sm/filesystem/s3.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

#undef GetObject
#include <aws/core/Aws.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
Expand Down
4 changes: 4 additions & 0 deletions tiledb/sm/filesystem/s3/AWSCredentialsProviderChain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -160,3 +162,5 @@ DefaultAWSCredentialsProviderChain::DefaultAWSCredentialsProviderChain(
}
}
} // namespace tiledb::sm::filesystem::s3

#endif // HAVE_S3
4 changes: 4 additions & 0 deletions tiledb/sm/filesystem/s3/GeneralHTTPCredentialsProvider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -383,3 +385,5 @@ void GeneralHTTPCredentialsProvider::RefreshIfExpired() {
Reload();
}
} // namespace tiledb::sm::filesystem::s3

#endif // HAVE_S3
4 changes: 4 additions & 0 deletions tiledb/sm/filesystem/s3/STSCredentialsProvider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -227,3 +229,5 @@ void STSAssumeRoleWebIdentityCredentialsProvider::RefreshIfExpired() {
Reload();
}
} // namespace tiledb::sm::filesystem::s3

#endif

0 comments on commit 73ae35f

Please sign in to comment.