Chromium Code Reviews
DescriptionDelay checksum only on ReadFromDisk, not in FullUpdate cases
Existing code was delaying checksum check when the |old_prefixes_map|
was empty. However, this is also the case when we receive a FULL_UPDATE
response from the server. We call:
ProcessUpdate(HashPrefixMap(), response)
So checking for an empty |old_prefixes_map| is an incorrect condition.
This CL adds a flag: |delay_checksum_check| which is set to true only in
ReadFromDisk method.
BUG=543161, 651911
Committed: https://crrev.com/cfa3d9220463fcc9b19f3fe6c9c3a3a2a030b76e
Cr-Commit-Position: refs/heads/master@{#425531}
Patch Set 1 #
Total comments: 3
Patch Set 2 : nparker@ review. Move delay_checksum_check into ProcessUpdate #Patch Set 3 : rebase #Patch Set 4 : Remove extra bool argument from MergeUpdate calls in tests #
Messages
Total messages: 27 (17 generated)
|
|||||||||||||||||||||||||||||||||||||