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

Method GetBackend

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

Source from the content-addressed store, hash-verified

2289 }
2290
2291 Result<S3Backend> GetBackend() {
2292 if (!backend_) {
2293 ARROW_ASSIGN_OR_RAISE(auto client_lock, holder_->Lock());
2294
2295 S3Model::HeadBucketRequest req;
2296 req.SetBucket("$extremelyunlikelytoexist$");
2297 auto outcome = client_lock.Move()->HeadBucket(req);
2298 DCHECK(!outcome.IsSuccess());
2299 return GetOrSetBackend(outcome.GetError());
2300 }
2301 return *backend_;
2302 }
2303
2304 // Tests to see if a bucket exists
2305 Result<bool> BucketExists(const std::string& bucket) {

Callers

nothing calls this directly

Calls 1

MoveMethod · 0.45

Tested by

no test coverage detected