Fix some LoadBalancer::waitFor*() inconsistencies
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 14 Apr 2017 02:15:42 +0000 (19:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 14 Apr 2017 02:23:09 +0000 (19:23 -0700)
commitdc17c8ddbf2a51d0061698d1cde9f17136ff0444
tree993d37a8bee5bc1a59df0ec440940fdd27731127
parent415a8de97dd07653a5f3aec239696be480e2d96a
Fix some LoadBalancer::waitFor*() inconsistencies

* Make sure waitFor() always handles laggedReplicaMode updates,
  even if the actual waiting was deferred until a connection was
  needed.
* Restore the old mWaitForPos in waitForOne()/waitForAll() since
  this do not care about the generic reader index or the sort of
  ChronologyProtector logic related to it.

Change-Id: I0767e9831b8fd7fd115a472354977e3c1e12114a
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancer.php