Fixed not an issue, shown by TSan [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-09-10 02:07:32 +03:00
parent a6d5e9c7e8
commit 5a8f47a640

View File

@ -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())
{