dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some LoadBalancer::waitFor*() inconsistencies
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
loadbalancer
/
ILoadBalancer.php
diff --git
a/includes/libs/rdbms/loadbalancer/ILoadBalancer.php
b/includes/libs/rdbms/loadbalancer/ILoadBalancer.php
index
8b5a98d
..
cbd0ff3
100644
(file)
--- a/
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
+++ b/
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
@@
-135,6
+135,10
@@
interface ILoadBalancer {
* If a DB_REPLICA connection has been opened already, then wait immediately.
* Otherwise sets a variable telling it to wait if such a connection is opened.
*
* If a DB_REPLICA connection has been opened already, then wait immediately.
* Otherwise sets a variable telling it to wait if such a connection is opened.
*
+ * This only applies to connections to the generic replica DB for this request.
+ * If a timeout happens when waiting, then getLaggedReplicaMode()/laggedReplicaUsed()
+ * will return true.
+ *
* @param DBMasterPos|bool $pos Master position or false
*/
public function waitFor( $pos );
* @param DBMasterPos|bool $pos Master position or false
*/
public function waitFor( $pos );