Review fix

This commit is contained in:
alesapin 2024-02-19 10:32:36 +01:00
parent 29e3e7cb96
commit 6565423b1a

View File

@ -5,6 +5,7 @@
#include <Interpreters/evaluateConstantExpression.h>
#include <Interpreters/addMissingDefaults.h>
#include <Interpreters/getColumnFromBlock.h>
#include <Interpreters/threadPoolCallbackRunner.h>
#include <Storages/StorageBuffer.h>
#include <Storages/StorageFactory.h>
#include <Storages/AlterCommands.h>
@ -814,10 +815,10 @@ void StorageBuffer::flushAllBuffers(bool check_thresholds)
{
if (flush_pool)
{
flush_pool->scheduleOrThrowOnError([&] ()
scheduleFromThreadPool<void>([&] ()
{
flushBuffer(buf, check_thresholds, false);
});
}, *flush_pool, "BufferFlush");
}
else
{