const char* msg = "";
int r = f->openNoThrow(path.data(), true, &msg);
- if (r == ElfFile::kSystemError) {
+ if (r != ElfFile::kSuccess) {
return nullptr;
}
- FOLLY_SAFE_CHECK(r == ElfFile::kSuccess, msg);
map_[path] = n;
return f;
// No negative caching
const char* msg = "";
int r = entry->file.openNoThrow(path.c_str(), true, &msg);
- if (r == ElfFile::kSystemError) {
+ if (r != ElfFile::kSuccess) {
return nullptr;
}
- FOLLY_SAFE_CHECK(r == ElfFile::kSuccess, msg);
if (files_.size() == capacity_) {
auto& e = lruList_.front();