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

Function InitializeS3

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

Source from the content-addressed store, hash-verified

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