rdbms: fix value of ChronologyProtector::POSITION_COOKIE_TTL
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 11 Jul 2018 09:39:05 +0000 (10:39 +0100)
committerReedy <reedy@wikimedia.org>
Wed, 11 Jul 2018 12:40:17 +0000 (12:40 +0000)
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

includes/libs/rdbms/ChronologyProtector.php

index b0dc10e..45179cc 100644 (file)
@@ -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) */
        /** @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;
 
        /** @var int Max time to wait for positions to appear */
        const POS_STORE_WAIT_TIMEOUT = 5;