mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fixed not an issue, shown by TSan [#CLICKHOUSE-2].
This commit is contained in:
parent
a6d5e9c7e8
commit
5a8f47a640
@ -115,7 +115,7 @@ void StorageDistributedDirectoryMonitor::run()
|
||||
|
||||
std::unique_lock<std::mutex> lock{mutex};
|
||||
|
||||
const auto quit_requested = [this] { return quit; };
|
||||
const auto quit_requested = [this] { return quit.load(std::memory_order_relaxed); };
|
||||
|
||||
while (!quit_requested())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user