Make position time APC key in LoadBalancer more Het-Deploy friendly
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 14 Feb 2017 21:47:58 +0000 (13:47 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 14 Feb 2017 21:47:58 +0000 (13:47 -0800)
This avoids two versions of MediaWiki fighting over Rdbms
namespace changes. A simple version string works since there
are no purges issued; it is TTL-based only.

Change-Id: Ie155c20352e8fea00ea469d162d25bda3600ae60

includes/libs/rdbms/loadbalancer/LoadBalancer.php

index 900a79c..b1c0cc8 100644 (file)
@@ -488,7 +488,7 @@ class LoadBalancer implements ILoadBalancer {
 
                // Check if we already know that the DB has reached this point
                $server = $this->getServerName( $index );
-               $key = $this->srvCache->makeGlobalKey( __CLASS__, 'last-known-pos', $server );
+               $key = $this->srvCache->makeGlobalKey( __CLASS__, 'last-known-pos', $server, 'v1' );
                /** @var DBMasterPos $knownReachedPos */
                $knownReachedPos = $this->srvCache->get( $key );
                if (