mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Make atomic counter relaxed
This commit is contained in:
parent
3ae9f121d9
commit
436de24cf8
@ -61,7 +61,7 @@ public:
|
||||
|
||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName &, const DataTypePtr &, size_t input_rows_count) const override
|
||||
{
|
||||
size_t current_columns_number = columns_number++;
|
||||
size_t current_columns_number = columns_number.fetch_add(1, std::memory_order_relaxed);
|
||||
return ColumnUInt64::create(input_rows_count, current_columns_number);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user