Make atomic counter relaxed

This commit is contained in:
Igor Nikonov 2022-12-13 13:34:41 +00:00
parent 3ae9f121d9
commit 436de24cf8

View File

@ -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);
}
};