mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
use context->getWriteSettings()
This commit is contained in:
parent
af4a5a5f3a
commit
15ab3bc99f
@ -3476,6 +3476,8 @@ WriteSettings Context::getWriteSettings() const
|
||||
|
||||
res.enable_filesystem_cache_on_write_operations = settings.enable_filesystem_cache_on_write_operations;
|
||||
|
||||
res.throttler = getRemoteWriteThrottler();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -418,7 +418,7 @@ public:
|
||||
uri,
|
||||
context->getGlobalContext()->getConfigRef(),
|
||||
context->getSettingsRef().hdfs_replication,
|
||||
WriteSettings{.throttler = context->getRemoteWriteThrottler()}),
|
||||
context->getWriteSettings()),
|
||||
compression_method, 3);
|
||||
writer = FormatFactory::instance().getOutputFormatParallelIfPossible(format, *write_buf, sample_block, context);
|
||||
}
|
||||
|
@ -588,7 +588,7 @@ public:
|
||||
std::nullopt,
|
||||
DBMS_DEFAULT_BUFFER_SIZE,
|
||||
threadPoolCallbackRunner(IOThreadPool::get()),
|
||||
WriteSettings{.throttler = context->getRemoteWriteThrottler()}),
|
||||
context->getWriteSettings()),
|
||||
compression_method,
|
||||
3);
|
||||
writer
|
||||
|
Loading…
Reference in New Issue
Block a user