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

Function try_dlopen

cpp/src/arrow/filesystem/hdfs_internal.cc:231–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231Result<void*> try_dlopen(const std::vector<PlatformFilename>& potential_paths,
232 std::string name) {
233 std::string error_message = "Unable to load " + name;
234
235 for (const auto& p : potential_paths) {
236 auto maybe_handle = arrow::internal::LoadDynamicLibrary(p);
237 if (maybe_handle.ok()) return *maybe_handle;
238 error_message += "\n" + maybe_handle.status().message();
239 }
240
241 return Status(StatusCode::IOError, std::move(error_message));
242}
243
244LibHdfsShim libhdfs_shim;
245

Callers 1

ConnectLibHdfsFunction · 0.85

Calls 4

LoadDynamicLibraryFunction · 0.85
StatusClass · 0.70
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected