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

Method GetBackend

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

MoveMethod · 0.45

Tested by

no test coverage detected