mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Change error code on invalid background_pool_size config
This commit is contained in:
parent
5361d128b3
commit
b0715ec5eb
@ -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