MCPcopy Create free account
hub / github.com/apache/impala / InitInternal

Method InitInternal

be/src/runtime/lib-cache.cc:111–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111Status LibCache::InitInternal(bool external_fe) {
112 if (external_fe) {
113 LOG(INFO) << "Library cache is using shared object for process handle";
114 RETURN_IF_ERROR(DynamicOpen("libfesupport.so", &current_process_handle_));
115 } else if (TestInfo::is_fe_test()) {
116 // In the FE tests, nullptr gives the handle to the java process.
117 // Explicitly load the fe-support shared object.
118 string fe_support_path;
119 PathBuilder::GetFullBuildPath("service/libfesupport.so", &fe_support_path);
120 RETURN_IF_ERROR(DynamicOpen(fe_support_path.c_str(), &current_process_handle_));
121 } else {
122 RETURN_IF_ERROR(DynamicOpen(nullptr, &current_process_handle_));
123 }
124 DCHECK(current_process_handle_ != nullptr)
125 << "We should always be able to get current process handle.";
126 return Status::OK();
127}
128
129LibCacheEntry::~LibCacheEntry() {
130 if (shared_object_handle != nullptr) {

Callers 1

InitMethod · 0.45

Calls 2

DynamicOpenFunction · 0.85
OKFunction · 0.85

Tested by

no test coverage detected