MINOR: server: replace the pendconns-related stuff with a struct queue

Just like for proxies, all three elements (pendconns, nbpend, queue_idx)
were moved to struct queue.
This commit is contained in:
Willy Tarreau
2021-06-18 09:30:30 +02:00
parent 7f3c1df248
commit a05704582c
14 changed files with 37 additions and 38 deletions

View File

@@ -87,7 +87,7 @@ static inline int server_has_room(const struct server *s) {
* for and if/else usage.
*/
static inline int may_dequeue_tasks(const struct server *s, const struct proxy *p) {
return (s && (s->nbpend || (p->queue.length && srv_currently_usable(s))) &&
return (s && (s->queue.length || (p->queue.length && srv_currently_usable(s))) &&
(!s->maxconn || s->cur_sess < srv_dynamic_maxconn(s)));
}