• yangguo's avatar
    Serializer: fix false negative in hashmap lookups. · dbecf20d
    yangguo authored
    If we use HashMap::Lookup with insert=true, the returned entry may have
    NULL as value. This could either mean that the value is 0, or that the
    entry has just been inserted. This ambiguity can cause false negatives
    in PartialCacheIndexMap::LookupOrInsert.
    
    Also fix a TODO.
    
    R=vogelheim@chromium.org
    
    Review URL: https://codereview.chromium.org/974273002
    
    Cr-Commit-Position: refs/heads/master@{#26994}
    dbecf20d
serialize.h 32.5 KB