提交 44fb6eb6 编写于 作者: K Kirill Shvakov

SystemLog: execute prepareTable() on each flush

上级 d095f69a
......@@ -233,8 +233,7 @@ void SystemLog<LogElement>::flush()
{
LOG_TRACE(log, "Flushing system log");
if (!is_prepared) /// BTW, flush method is called from single thread.
prepareTable();
prepareTable();
Block block = LogElement::createBlock();
for (const LogElement & elem : data)
......@@ -311,7 +310,7 @@ void SystemLog<LogElement>::prepareTable()
/// The required table will be created.
table = nullptr;
}
else
else if (!is_prepared)
LOG_DEBUG(log, "Will use existing table " << description << " for " + LogElement::name());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册