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

Method DefaultInstance

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

Source from the content-addressed store, hash-verified

1247 }
1248
1249 static Result<std::shared_ptr<RegionResolver>> DefaultInstance() {
1250 std::unique_lock lock(instance_mutex_);
1251 if (instance_) {
1252 return instance_;
1253 }
1254 auto maybe_resolver = Make(S3Options::Anonymous());
1255 if (!maybe_resolver.ok()) {
1256 return maybe_resolver;
1257 }
1258 instance_ = *maybe_resolver;
1259 return maybe_resolver;
1260 }
1261
1262 static void ResetDefaultInstance() {
1263 std::unique_lock lock(instance_mutex_);

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected