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

Method GetOrSetBackend

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

Source from the content-addressed store, hash-verified

2220
2221 template <typename Error>
2222 S3Backend GetOrSetBackend(const Aws::Client::AWSError<Error>& error) {
2223 if (!backend_ || *backend_ == S3Backend::Other) {
2224 backend_ = DetectS3Backend(error);
2225 }
2226 DCHECK(backend_.has_value());
2227 return *backend_;
2228 }
2229
2230 Result<S3Backend> GetBackend() {
2231 if (!backend_) {

Callers 1

GetFileInfoMethod · 0.80

Calls 1

DetectS3BackendFunction · 0.85

Tested by

no test coverage detected