mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fix data race in context
This commit is contained in:
parent
70c3f31926
commit
68a3cd57a1
@ -3417,9 +3417,8 @@ void Context::initializeSystemLogs()
|
||||
/// triggered from another thread, that is launched while initializing the system logs,
|
||||
/// for example, system.filesystem_cache_log will be triggered by parts loading
|
||||
/// of any other table if it is stored on a disk with cache.
|
||||
callOnce(shared->system_logs_initializer, [&] {
|
||||
shared->system_logs = std::make_unique<SystemLogs>(getGlobalContext(), getConfigRef());
|
||||
});
|
||||
auto lock = getGlobalLock();
|
||||
shared->system_logs = std::make_unique<SystemLogs>(getGlobalContext(), getConfigRef());
|
||||
}
|
||||
|
||||
void Context::initializeTraceCollector()
|
||||
|
Loading…
Reference in New Issue
Block a user