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

Function CheckS3Initialized

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

Source from the content-addressed store, hash-verified

451Status ErrorS3Finalized() { return Status::Invalid("S3 subsystem is finalized"); }
452
453Status CheckS3Initialized() {
454 if (!IsS3Initialized()) {
455 if (IsS3Finalized()) {
456 return ErrorS3Finalized();
457 }
458 return Status::Invalid(
459 "S3 subsystem is not initialized; please call InitializeS3() "
460 "before carrying out any S3-related operation");
461 }
462 return Status::OK();
463}
464
465// XXX Sanitize paths by removing leading slash?
466

Callers 4

OpenInputFileMethod · 0.85
MakeMethod · 0.85
OpenOutputStreamMethod · 0.85
ResolveS3BucketRegionFunction · 0.85

Calls 5

IsS3InitializedFunction · 0.85
IsS3FinalizedFunction · 0.85
ErrorS3FinalizedFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected