aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend/lockmanager
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2015-11-02 21:45:43 +0000
committerTimo Tijhof <krinklemail@gmail.com>2015-11-02 22:16:05 +0000
commit8a821011cee395a1dcc4b1164d3d45a38b0a3f7a (patch)
tree5c1fcbda7a4e81df5ff094761d0d2d048720b9bc /includes/filebackend/lockmanager
parent5f15ac0058b56e8782829170b4397b2bacfa8089 (diff)
downloadmediawikicore-8a821011cee395a1dcc4b1164d3d45a38b0a3f7a.tar.gz
mediawikicore-8a821011cee395a1dcc4b1164d3d45a38b0a3f7a.zip
Remove getLocalServerInstance try/catch in UIDGenerator and DBLockManager
Follows-up 17c91ad610 in which the exception was removed. Change-Id: If0c8465d0e04f69f29f3f2602dac7ae4538f7542
Diffstat (limited to 'includes/filebackend/lockmanager')
-rw-r--r--includes/filebackend/lockmanager/DBLockManager.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/filebackend/lockmanager/DBLockManager.php b/includes/filebackend/lockmanager/DBLockManager.php
index 1c389c3c2974..42ebb46e6b63 100644
--- a/includes/filebackend/lockmanager/DBLockManager.php
+++ b/includes/filebackend/lockmanager/DBLockManager.php
@@ -95,12 +95,7 @@ abstract class DBLockManager extends QuorumLockManager {
if ( count( $bucket ) > 1 ) { // multiple peers
// Tracks peers that couldn't be queried recently to avoid lengthy
// connection timeouts. This is useless if each bucket has one peer.
- try {
- $this->statusCache = ObjectCache::getLocalServerInstance();
- } catch ( Exception $e ) {
- trigger_error( __CLASS__ .
- " using multiple DB peers without apc, xcache, or wincache." );
- }
+ $this->statusCache = ObjectCache::getLocalServerInstance();
break;
}
}