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

Method GetOrSetBackend

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

Source from the content-addressed store, hash-verified

2279
2280 template <typename Error>
2281 S3Backend GetOrSetBackend(const Aws::Client::AWSError<Error>& error) {
2282 if (!backend_ || *backend_ == S3Backend::Other) {
2283 backend_ = DetectS3Backend(error);
2284 }
2285 DCHECK(backend_.has_value());
2286 return *backend_;
2287 }
2288
2289 Result<S3Backend> GetBackend() {
2290 if (!backend_) {

Callers 1

GetFileInfoMethod · 0.80

Calls 1

DetectS3BackendFunction · 0.85

Tested by

no test coverage detected