mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Fix race on zk_log
This commit is contained in:
parent
117930f914
commit
45b6956601
@ -1147,7 +1147,8 @@ void ZooKeeper::pushRequest(RequestInfo && info)
|
||||
{
|
||||
checkSessionDeadline();
|
||||
info.time = clock::now();
|
||||
if (zk_log)
|
||||
auto maybe_zk_log = std::atomic_load(&zk_log);
|
||||
if (maybe_zk_log)
|
||||
{
|
||||
info.request->thread_id = getThreadId();
|
||||
info.request->query_id = String(CurrentThread::getQueryId());
|
||||
|
Loading…
Reference in New Issue
Block a user