This commit is contained in:
kssenii 2023-10-06 12:41:37 +02:00
parent 68a3cd57a1
commit 9df0b8f67c

View File

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