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

Function FinalizeS3

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

Source from the content-addressed store, hash-verified

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

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