| 190 | } |
| 191 | |
| 192 | Status 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 | |
| 205 | Status LibCache::CheckSymbolExists(const string& hdfs_lib_file, LibType type, |
| 206 | const string& symbol, bool quiet, time_t* mtime) { |
no test coverage detected