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