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

Function FinalizeS3

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

Source from the content-addressed store, hash-verified

3604}
3605
3606Status FinalizeS3() {
3607 auto instance = GetAwsInstance();
3608 // The AWS instance might already be destroyed in case FinalizeS3
3609 // is called from an atexit handler (which is a bad idea anyway as the
3610 // AWS SDK is not safe anymore to shutdown by this time). See GH-44071.
3611 if (instance == nullptr) {
3612 return Status::Invalid("FinalizeS3 called too late");
3613 }
3614 instance->Finalize();
3615 return Status::OK();
3616}
3617
3618Status EnsureS3Finalized() { return FinalizeS3(); }
3619

Callers 4

EnsureS3FinalizedFunction · 0.70
TestMainFunction · 0.70
TearDownMethod · 0.70
garrow_s3_finalizeFunction · 0.50

Calls 4

GetAwsInstanceFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50
FinalizeMethod · 0.45

Tested by 2

TestMainFunction · 0.56
TearDownMethod · 0.56