From: Aaron Schulz Date: Wed, 11 Jul 2018 09:39:05 +0000 (+0100) Subject: rdbms: fix value of ChronologyProtector::POSITION_COOKIE_TTL X-Git-Tag: 1.34.0-rc.0~4814 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=6cce704da1335078aa98838e7a7da9eeb4e46b67 rdbms: fix value of ChronologyProtector::POSITION_COOKIE_TTL This was supposed to be 10 (~LoadBalancer::MAX_WAIT_DEFAULT) but ended up as 60 by mistake in 52af356cad (when the constant was added). Bug: T194403 Change-Id: Ie94949eebaafde2e0c4e2fcffabcb78866363a27 --- diff --git a/includes/libs/rdbms/ChronologyProtector.php b/includes/libs/rdbms/ChronologyProtector.php index b0dc10ebed..45179cc835 100644 --- a/includes/libs/rdbms/ChronologyProtector.php +++ b/includes/libs/rdbms/ChronologyProtector.php @@ -66,7 +66,7 @@ class ChronologyProtector implements LoggerAwareInterface { /** @var int Seconds to store positions */ const POSITION_TTL = 60; /** @var int Seconds to store position write index cookies (safely less than POSITION_TTL) */ - const POSITION_COOKIE_TTL = 60; + const POSITION_COOKIE_TTL = 10; /** @var int Max time to wait for positions to appear */ const POS_STORE_WAIT_TIMEOUT = 5;