Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Silly logic bug in idle/no_rr mode checking

Yay for De Morgan's laws.
  • Loading branch information...
commit dc897c042014999694a0bcdbfa0a1b58adb84df6 1 parent 8fac71e
@gnosek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ngx_http_upstream_fair_module.c
View
2  ngx_http_upstream_fair_module.c
@@ -762,7 +762,7 @@ ngx_http_upstream_choose_fair_peer_idle(ngx_peer_connection_t *pc,
}
/* not in WM_IDLE+no_rr mode: the first completely idle backend gets chosen */
- if (weight_mode != WM_IDLE && !fp->peers->no_rr) {
+ if (weight_mode != WM_IDLE || !fp->peers->no_rr) {
best_idx = n;
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.