| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Version of LockManager based on using DB table locks. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 438 lines (14 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
MySqlLockManager:: (3 methods):
initConnection()
doGetLocksOnServer()
releaseAllLocks()
PostgreSqlLockManager:: (2 methods):
doGetLocksOnServer()
releaseAllLocks()
Class: MySqlLockManager - X-Ref
MySQL version of DBLockManager that supports shared locks.| initConnection( $lockDb, DatabaseBase $db ) X-Ref |
param: string $lockDb param: DatabaseBase $db |
| doGetLocksOnServer( $lockSrv, array $paths, $type ) X-Ref |
| Get a connection to a lock DB and acquire locks on $paths. This does not use GET_LOCK() per http://bugs.mysql.com/bug.php?id=1118. param: string $lockSrv param: array $paths param: string $type return: Status |
| releaseAllLocks() X-Ref |
return: Status |
Class: PostgreSqlLockManager - X-Ref
PostgreSQL version of DBLockManager that supports shared locks.| doGetLocksOnServer( $lockSrv, array $paths, $type ) X-Ref |
| No description |
| releaseAllLocks() X-Ref |
| No description |
| __construct( array $config ) X-Ref |
| Construct a new instance from configuration. param: array $config Paramaters include: |
| getLocksOnServer( $lockSrv, array $pathsByType ) X-Ref |
| No description |
| freeLocksOnServer( $lockSrv, array $pathsByType ) X-Ref |
| No description |
| isServerUp( $lockSrv ) X-Ref |
param: string $lockSrv return: bool |
| getConnection( $lockDb ) X-Ref |
| Get (or reuse) a connection to a lock DB param: string $lockDb return: DatabaseBase |
| initConnection( $lockDb, DatabaseBase $db ) X-Ref |
| Do additional initialization for new lock DB connection param: string $lockDb param: DatabaseBase $db |
| cacheCheckFailures( $lockDb ) X-Ref |
| Checks if the DB has not recently had connection/query errors. This just avoids wasting time on doomed connection attempts. param: string $lockDb return: bool |
| cacheRecordFailure( $lockDb ) X-Ref |
| Log a lock request failure to the cache param: string $lockDb return: bool Success |
| getMissKey( $lockDb ) X-Ref |
| Get a cache key for recent query misses for a DB param: string $lockDb return: string |
| __destruct() X-Ref |
| Make sure remaining locks get cleared for sanity |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |