Hello Ashwani Raina, Kudu Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/23876

to look at the new patch set (#2).

Change subject: [net] make SockAddr::HashCode() return size_t
......................................................................

[net] make SockAddr::HashCode() return size_t

This patch changes the return type of SockAddr::HashCode() from uint32_t
to size_t (since the underlying hash function effectively operates with
64-bit integers on x86_64 anyway) and brings more consistency into
the specialization of the std::hash<T>::operator()(const T&) for the
Sockaddr type.  This addresses UBSAN warnings on implicit conversion of
integers (when enabled) and makes SockAddr::HashCode() consistent with
the expectations for std::hash<T>::operator() template specialization.

Change-Id: Ia228dfd6cf932a2378ba7e7cafbc07a381313c12
---
M src/kudu/util/net/sockaddr.cc
M src/kudu/util/net/sockaddr.h
2 files changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/76/23876/2
--
To view, visit http://gerrit.cloudera.org:8080/23876
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia228dfd6cf932a2378ba7e7cafbc07a381313c12
Gerrit-Change-Number: 23876
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Ashwani Raina <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to