dbms: less overhead and indirection in StorageBuffer

This commit is contained in:
Andrey Mironov 2014-12-03 16:01:00 +03:00
parent 8446069851
commit 274e0a80a7

View File

@ -30,7 +30,7 @@ StorageBuffer::StorageBuffer(const std::string & name_, NamesAndTypesListPtr col
destination_database(destination_database_), destination_table(destination_table_),
no_destination(destination_database.empty() && destination_table.empty()),
log(&Logger::get("StorageBuffer (" + name + ")")),
flush_thread([this] { flushThread(); })
flush_thread(&StorageBuffer::flushThread, this)
{
}