Skip to content

Commit

Permalink
Fix memory_order syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat committed Nov 12, 2023
1 parent 0f8b396 commit cacf434
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 cacf434

Please sign in to comment.