|
MediaWiki
REL1_19
|
MySQL version of DBLockManager that supports shared locks. More...


Protected Member Functions | |
| doLockingQuery ($lockDb, array $paths, $type) | |
| Get a connection to a lock DB and acquire locks on $paths. | |
| initConnection ($lockDb, DatabaseBase $db) | |
| Do additional initialization for new lock DB connection. | |
Protected Attributes | |
| $lockTypeMap | |
MySQL version of DBLockManager that supports shared locks.
All locks are non-blocking, which avoids deadlocks.
Definition at line 408 of file DBLockManager.php.
| MySqlLockManager::doLockingQuery | ( | $ | lockDb, |
| array $ | paths, | ||
| $ | type | ||
| ) | [protected] |
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.
| $lockDb | string |
| $paths | Array |
| $type | integer LockManager::LOCK_EX or LockManager::LOCK_SH |
| DBError |
Reimplemented from DBLockManager.
Definition at line 421 of file DBLockManager.php.
References $keys, and DBLockManager\getConnection().

| MySqlLockManager::initConnection | ( | $ | lockDb, |
| DatabaseBase $ | db | ||
| ) | [protected] |
Do additional initialization for new lock DB connection.
| $lockDb | string |
| $db | DatabaseBase |
| DBError |
Reimplemented from DBLockManager.
Definition at line 416 of file DBLockManager.php.
References DatabaseBase\query().

MySqlLockManager::$lockTypeMap [protected] |
array(
self::LOCK_SH => self::LOCK_SH,
self::LOCK_UW => self::LOCK_SH,
self::LOCK_EX => self::LOCK_EX
)
Reimplemented from LockManager.
Definition at line 410 of file DBLockManager.php.