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

Method GetLocalPath

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

Source from the content-addressed store, hash-verified

190}
191
192Status LibCache::GetLocalPath(const std::string& hdfs_lib_file, LibType type,
193 time_t exp_mtime, LibCacheEntryHandle* handle, string* path) {
194 DCHECK(handle != nullptr && handle->entry() == nullptr);
195 LibCacheEntry* entry = nullptr;
196 unique_lock<mutex> lock;
197 RETURN_IF_ERROR(GetCacheEntry(hdfs_lib_file, type, exp_mtime, &lock, &entry));
198 DCHECK(entry != nullptr);
199 ++entry->use_count;
200 handle->SetEntry(entry);
201 *path = entry->local_path;
202 return Status::OK();
203}
204
205Status LibCache::CheckSymbolExists(const string& hdfs_lib_file, LibType type,
206 const string& symbol, bool quiet, time_t* mtime) {

Callers 5

OpenEvaluatorMethod · 0.80
ResolveSymbolLookupFunction · 0.80
InitMethod · 0.80
LinkModuleFromHdfsMethod · 0.80

Calls 3

OKFunction · 0.85
entryMethod · 0.80
SetEntryMethod · 0.80

Tested by

no test coverage detected