mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 673470 - Fix order of SubPrefix Knockouts. r=dcamp
This commit is contained in:
parent
fb781f9dfa
commit
792fd20ea2
@ -1004,20 +1004,21 @@ HashStore::ProcessSubs()
|
||||
EntrySort(mAddCompletes);
|
||||
EntrySort(mSubCompletes);
|
||||
|
||||
KnockoutSubs(&mSubPrefixes, &mAddPrefixes);
|
||||
|
||||
RemoveMatchingPrefixes(mSubPrefixes, &mAddCompletes);
|
||||
RemoveMatchingPrefixes(mSubPrefixes, &mSubCompletes);
|
||||
|
||||
KnockoutSubs(&mSubCompletes, &mAddCompletes);
|
||||
|
||||
// Clean up temporary subs used for knocking out completes
|
||||
// Clean up temporary subs (without per-client randomization),
|
||||
// that we temporarily stored so we could knock out completes.
|
||||
ChunkSet dummyChunks;
|
||||
dummyChunks.Set(0);
|
||||
ExpireEntries(&mSubPrefixes, dummyChunks);
|
||||
ExpireEntries(&mSubCompletes, dummyChunks);
|
||||
mSubChunks.Remove(dummyChunks);
|
||||
|
||||
// Remove any remaining subbed prefixes from both addprefixes
|
||||
// and subprefixes.
|
||||
KnockoutSubs(&mSubPrefixes, &mAddPrefixes);
|
||||
KnockoutSubs(&mSubCompletes, &mAddCompletes);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user