Skip to content

Commit

Permalink
Fix a bug in which an absl hashtable is used with inconsistent hash/e…
Browse files Browse the repository at this point in the history
…q functors.

`eq(k1, k2) -> hash(k1) == hash(k2)` must be true for hashtable usage to be valid.

Signed-off-by: Yan Avlasov <[email protected]>
  • Loading branch information
yanavlasov committed Mar 4, 2024
1 parent e28e0d6 commit 4f5c967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/protobuf/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class MessageUtil {

// std::equals_to
bool operator()(const Protobuf::Message& lhs, const Protobuf::Message& rhs) const {
return Protobuf::util::MessageDifferencer::Equivalent(lhs, rhs);
return Protobuf::util::MessageDifferencer::Equals(lhs, rhs);
}

class FileExtensionValues {
Expand Down

0 comments on commit 4f5c967

Please sign in to comment.