mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #44947 from Algunenano/background_pool_size_logical
Change error code on invalid background_pool_size config
This commit is contained in:
commit
a205b41c56
@ -21,7 +21,7 @@ namespace DB
|
||||
{
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int LOGICAL_ERROR;
|
||||
extern const int INVALID_CONFIG_PARAMETER;
|
||||
}
|
||||
|
||||
struct TaskRuntimeData;
|
||||
@ -172,7 +172,7 @@ public:
|
||||
, metric(metric_)
|
||||
{
|
||||
if (max_tasks_count == 0)
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Task count for MergeTreeBackgroundExecutor must not be zero");
|
||||
throw Exception(ErrorCodes::INVALID_CONFIG_PARAMETER, "Task count for MergeTreeBackgroundExecutor must not be zero");
|
||||
|
||||
pending.setCapacity(max_tasks_count);
|
||||
active.set_capacity(max_tasks_count);
|
||||
|
Loading…
Reference in New Issue
Block a user