Backed out changeset c0b940487708 (bug 1359299) for causing intermittent Windows safebrowsing crashes.

This commit is contained in:
Ryan VanderMeulen
2017-05-24 09:11:04 -04:00
parent f09bf719c7
commit c121499332
7 changed files with 59 additions and 62 deletions

View File

@@ -627,19 +627,6 @@ Classifier::RemoveUpdateIntermediaries()
}
}
void
Classifier::CopyFullHashCacheToNewLookupCache(LookupCache* aNewLookupCache)
{
MOZ_ASSERT(aNewLookupCache);
for (auto c: mLookupCaches) {
if (c->TableName() == aNewLookupCache->TableName()) {
aNewLookupCache->CopyFullHashCache(c);
return;
}
}
}
void
Classifier::MergeNewLookupCaches()
{
@@ -1478,13 +1465,6 @@ Classifier::GetLookupCache(const nsACString& aTable, bool aForUpdate)
}
rv = cache->Open();
if (NS_SUCCEEDED(rv)) {
if (aForUpdate) {
// Since update algorithm will invalidate expired cache entries, we need
// to copy fullhash cache in "old LookupCache" to "update Lookupcache" before
// applying an update.
CopyFullHashCacheToNewLookupCache(cache.get());
}
lookupCaches.AppendElement(cache.get());
return cache.release();
}