Add LBFactory::getChronologyProtectorTouched() method
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Sep 2016 20:07:15 +0000 (13:07 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 11 Sep 2016 20:07:43 +0000 (20:07 +0000)
commit6b8effebb32af5685528c8fd2ebaadac8880a0c1
tree24c103baeb0380b16fd62be71e747808feb23e60
parent5e053d5772eadb97e961830d8d613fdbc93adef6
Add LBFactory::getChronologyProtectorTouched() method

This lets callers check whether a user recently change a DB and
possibly try harder to reflect certain changes or refresh caches.

Also simplified some logging code a bit.

Change-Id: Ia1168cf0d46cfdee046838ce4c5a6294e4d81760
includes/db/ChronologyProtector.php
includes/db/loadbalancer/LBFactory.php
tests/phpunit/includes/db/LBFactoryTest.php