<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -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 &amp;&amp; !fp-&gt;peers-&gt;no_rr) {
+        if (weight_mode != WM_IDLE || !fp-&gt;peers-&gt;no_rr) {
             best_idx = n;
             break;
         }</diff>
      <filename>ngx_http_upstream_fair_module.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8fac71e7fa02ad84b155e0c2e3f6c383ac950ba0</id>
    </parent>
  </parents>
  <author>
    <name>Grzegorz Nosek</name>
    <email>root@localdomain.pl</email>
  </author>
  <url>http://github.com/gnosek/nginx-upstream-fair/commit/dc897c042014999694a0bcdbfa0a1b58adb84df6</url>
  <id>dc897c042014999694a0bcdbfa0a1b58adb84df6</id>
  <committed-date>2008-10-12T08:51:16-07:00</committed-date>
  <authored-date>2008-10-12T08:51:16-07:00</authored-date>
  <message>Silly logic bug in idle/no_rr mode checking

Yay for De Morgan's laws.</message>
  <tree>b2f16d471fba0c5b4ae3d131c8587e9d31fa6e13</tree>
  <committer>
    <name>Grzegorz Nosek</name>
    <email>root@localdomain.pl</email>
  </committer>
</commit>
