CLEANUP: listener/config: remove the special case for shards==1
In fact this case is already handled by the regular shards code, there is no need to special-case it.
This commit is contained in:
parent
f2988e1447
commit
484093df80
|
@ -2968,10 +2968,6 @@ int check_config_validity()
|
|||
|
||||
/* apply thread masks and groups to all receivers */
|
||||
list_for_each_entry(li, &bind_conf->listeners, by_bind) {
|
||||
if (bind_conf->settings.shards <= 1) {
|
||||
li->rx.bind_thread = thread_set_first_tmask(&bind_conf->thread_set);
|
||||
li->rx.bind_tgroup = thread_set_first_group(&bind_conf->thread_set);
|
||||
} else {
|
||||
struct listener *new_li;
|
||||
int shard, shards, todo, done, bit;
|
||||
ulong mask;
|
||||
|
@ -3017,7 +3013,6 @@ int check_config_validity()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (curproxy->mode) {
|
||||
case PR_MODE_TCP:
|
||||
|
|
Loading…
Reference in New Issue