Skip to content

Commit

Permalink
Merge pull request #343 from georgthegreat/master
Browse files Browse the repository at this point in the history
Fix memory_order syntax
  • Loading branch information
Enmk committed Nov 16, 2023
2 parents 0f8b396 + 2ac94d0 commit 7217e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse/types/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ uint64_t Type::GetTypeUniqueId() const {
// 1. going to be the same
// 2. going to be stored atomically

if (type_unique_id_.load(std::memory_order::memory_order_relaxed) == 0) {
if (type_unique_id_.load(std::memory_order_relaxed) == 0) {
const auto name = GetName();
type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order::memory_order_relaxed);
type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order_relaxed);
}

return type_unique_id_;
Expand Down

0 comments on commit 7217e32

Please sign in to comment.