mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Added a patch from Alexander Burmak
This commit is contained in:
parent
61d33a8d9a
commit
ca6bea3731
@ -189,7 +189,8 @@ SystemLog<LogElement>::SystemLog(Context & context_,
|
||||
const String & database_name_,
|
||||
const String & table_name_,
|
||||
const String & storage_def_,
|
||||
size_t flush_interval_milliseconds_)
|
||||
size_t flush_interval_milliseconds_,
|
||||
bool lazy_load)
|
||||
: context(context_)
|
||||
, table_id(database_name_, table_name_)
|
||||
, storage_def(storage_def_),
|
||||
@ -198,6 +199,11 @@ SystemLog<LogElement>::SystemLog(Context & context_,
|
||||
assert(database_name_ == DatabaseCatalog::SYSTEM_DATABASE);
|
||||
log = &Logger::get("SystemLog (" + database_name_ + "." + table_name_ + ")");
|
||||
|
||||
if (!lazy_load)
|
||||
{
|
||||
prepareTable();
|
||||
}
|
||||
|
||||
saving_thread = ThreadFromGlobalPool([this] { savingThreadFunction(); });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user