X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Flbfactory%2FILBFactory.php;h=8e354569040cad7d45d7ca4cb574bfd13feb69dc;hb=1dee28cb5f1efd6d9e14d6cc1d0c73c3f69269b4;hp=222d7d1c9646611e565a37cf4173d6d2c72cef1b;hpb=33ac4182cae78d525d5fabd317d5889f52c46135;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/lbfactory/ILBFactory.php b/includes/libs/rdbms/lbfactory/ILBFactory.php index 222d7d1c96..8e35456904 100644 --- a/includes/libs/rdbms/lbfactory/ILBFactory.php +++ b/includes/libs/rdbms/lbfactory/ILBFactory.php @@ -269,9 +269,9 @@ interface ILBFactory { * @param array $opts Optional fields that include: * - domain : wait on the load balancer DBs that handles the given domain ID * - cluster : wait on the given external load balancer DBs - * - timeout : Max wait time. Default: ~60 seconds + * - timeout : Max wait time. Default: 60 seconds for CLI, 1 second for web. * - ifWritesSince: Only wait if writes were done since this UNIX timestamp - * @throws DBReplicationWaitError If a timeout or error occurred waiting on a DB cluster + * @return bool True on success, false if a timeout or error occurred while waiting */ public function waitForReplication( array $opts = [] ); @@ -301,7 +301,7 @@ interface ILBFactory { * @param string $fname Caller name (e.g. __METHOD__) * @param mixed $ticket Result of getEmptyTransactionTicket() * @param array $opts Options to waitForReplication() - * @throws DBReplicationWaitError + * @return bool True if the wait was successful, false on timeout */ public function commitAndWaitForReplication( $fname, $ticket, array $opts = [] ); @@ -338,7 +338,7 @@ interface ILBFactory { /** * Append ?cpPosIndex parameter to a URL for ChronologyProtector purposes if needed * - * Note that unlike cookies, this works accross domains + * Note that unlike cookies, this works across domains * * @param string $url * @param int $index Write counter index