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

Method GetOrSetBackend

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

Source from the content-addressed store, hash-verified

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

Callers 1

GetFileInfoMethod · 0.80

Calls 1

DetectS3BackendFunction · 0.85

Tested by

no test coverage detected