mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fix race
This commit is contained in:
parent
e44b544ac0
commit
648b647f5f
@ -31,7 +31,8 @@ public:
|
||||
|
||||
private:
|
||||
std::optional<size_t> read_until_position;
|
||||
size_t file_offset_of_buffer_end = 0;
|
||||
/// atomic because can be used in log or exception messages while being updated.
|
||||
std::atomic<size_t> file_offset_of_buffer_end = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user