Skip to content

Commit a549dde

Browse files
committed
more fixes
Signed-off-by: Vladislav Oleshko <[email protected]>
1 parent 4f1283f commit a549dde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/server/tiering/entry_map.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ namespace detail {
1616
struct Hasher {
1717
using is_transparent = void;
1818
template <typename S> size_t operator()(const std::pair<DbIndex, S>& p) const {
19-
return absl::Hash(p)();
19+
return absl::HashOf(p);
2020
}
2121
};
2222

2323
struct Eq {
2424
using is_transparent = void;
2525
template <typename S1, typename S2>
2626
bool operator()(const std::pair<DbIndex, S1>& l, const std::pair<DbIndex, S2>& r) const {
27-
return l == r;
27+
const auto& [i1, s1] = l;
28+
const auto& [i2, s2] = r;
29+
return i1 == i2 && s1 == s2;
2830
}
2931
};
3032
} // namespace detail

0 commit comments

Comments
 (0)