| 108 | } |
| 109 | |
| 110 | struct InFlightCDCRequestKey { |
| 111 | uint64_t requestId; |
| 112 | uint64_t portIp; |
| 113 | |
| 114 | InFlightCDCRequestKey(uint64_t requestId_, IpPort clientAddr) : |
| 115 | requestId(requestId_) |
| 116 | { |
| 117 | sockaddr_in addr; |
| 118 | clientAddr.toSockAddrIn(addr); |
| 119 | portIp = ((uint64_t) addr.sin_port << 32) | ((uint64_t) addr.sin_addr.s_addr); |
| 120 | } |
| 121 | |
| 122 | bool operator==(const InFlightCDCRequestKey& other) const { |
| 123 | return requestId == other.requestId && portIp == other.portIp; |
| 124 | } |
| 125 | }; |
| 126 | |
| 127 | template <> |
| 128 | struct std::hash<InFlightCDCRequestKey> { |
no outgoing calls
no test coverage detected