X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Flbfactory%2FILBFactory.php;h=8e354569040cad7d45d7ca4cb574bfd13feb69dc;hb=1dee28cb5f1efd6d9e14d6cc1d0c73c3f69269b4;hp=23699c7a8888cd97e4f86f6193321986670fd73b;hpb=33afb7440a03df8d1878c94d2f3d3b9fdd1a848b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/lbfactory/ILBFactory.php b/includes/libs/rdbms/lbfactory/ILBFactory.php index 23699c7a88..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 = [] );