diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2015-11-02 21:45:43 +0000 |
---|---|---|
committer | Timo Tijhof <krinklemail@gmail.com> | 2015-11-02 22:16:05 +0000 |
commit | 8a821011cee395a1dcc4b1164d3d45a38b0a3f7a (patch) | |
tree | 5c1fcbda7a4e81df5ff094761d0d2d048720b9bc /includes/utils/UIDGenerator.php | |
parent | 5f15ac0058b56e8782829170b4397b2bacfa8089 (diff) | |
download | mediawikicore-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/utils/UIDGenerator.php')
-rw-r--r-- | includes/utils/UIDGenerator.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index f781435b76fa..26eebcd41538 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -282,11 +282,7 @@ class UIDGenerator { // Counter values would not survive accross script instances in CLI mode. $cache = null; if ( ( $flags & self::QUICK_VOLATILE ) && PHP_SAPI !== 'cli' ) { - try { - $cache = ObjectCache::getLocalServerInstance(); - } catch ( Exception $e ) { - // not supported - } + $cache = ObjectCache::getLocalServerInstance(); } if ( $cache ) { $counter = $cache->incr( $bucket, $count ); |