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

Function FinalizeS3

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

Source from the content-addressed store, hash-verified

3537}
3538
3539Status FinalizeS3() {
3540 auto instance = GetAwsInstance();
3541 // The AWS instance might already be destroyed in case FinalizeS3
3542 // is called from an atexit handler (which is a bad idea anyway as the
3543 // AWS SDK is not safe anymore to shutdown by this time). See GH-44071.
3544 if (instance == nullptr) {
3545 return Status::Invalid("FinalizeS3 called too late");
3546 }
3547 instance->Finalize();
3548 return Status::OK();
3549}
3550
3551Status EnsureS3Finalized() { return FinalizeS3(); }
3552

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