Add noexcept to spaceship operator in hlc

This commit is contained in:
jbajic 2023-02-21 14:29:13 +01:00
parent 177de2fa2e
commit cb1a77db98
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ struct Hlc final {
uint64_t logical_id{0};
Time coordinator_wall_clock = Time::min();
auto operator<=>(const Hlc &other) const { return logical_id <=> other.logical_id; }
auto operator<=>(const Hlc &other) const noexcept { return logical_id <=> other.logical_id; }
bool operator==(const Hlc &other) const noexcept = default;
bool operator<(const Hlc &other) const noexcept = default;

View File

@ -29,7 +29,7 @@ struct Edge;
struct Delta;
struct CommitInfo;
inline uint64_t GetNextDeltaId() noexcept {
inline uint64_t GetNextDeltaId() {
static utils::Synchronized<uint64_t, utils::SpinLock> delta_id{0};
return delta_id.WithLock([](auto &id) { return id++; });
}