MCPcopy Create free account
hub / github.com/apache/arrow / InitializeS3

Function InitializeS3

cpp/src/arrow/filesystem/s3fs.cc:3593–3602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3591} // namespace
3592
3593Status InitializeS3(const S3GlobalOptions& options) {
3594 ARROW_ASSIGN_OR_RAISE(bool successfully_initialized,
3595 EnsureAwsInstanceInitialized(options));
3596 if (!successfully_initialized) {
3597 return Status::Invalid(
3598 "S3 was already initialized. It is safe to use but the options passed in this "
3599 "call have been ignored.");
3600 }
3601 return Status::OK();
3602}
3603
3604Status EnsureS3Initialized() {
3605 return EnsureAwsInstanceInitialized(S3GlobalOptions::Defaults()).status();

Callers 4

garrow_s3_initializeFunction · 0.85
TestMainFunction · 0.85
SetUpMethod · 0.85

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by 2

TestMainFunction · 0.68
SetUpMethod · 0.68