mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Create a deep copy of Settings to ensure they don't change
This commit is contained in:
parent
18a6b970eb
commit
0996ed5246
@ -347,7 +347,7 @@ DistributedSink::runWritingJob(JobReplica & job, const Block & current_block, si
|
||||
}
|
||||
|
||||
const Block & shard_block = (num_shards > 1) ? job.current_shard_block : current_block;
|
||||
const Settings & settings = context->getSettingsRef();
|
||||
const Settings settings = context->getSettingsCopy();
|
||||
|
||||
size_t rows = shard_block.rows();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user