From 6cce704da1335078aa98838e7a7da9eeb4e46b67 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 11 Jul 2018 10:39:05 +0100 Subject: [PATCH] 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 --- includes/libs/rdbms/ChronologyProtector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1