MediaWiki  REL1_22
PostgreSqlLockManager Class Reference

PostgreSQL version of DBLockManager that supports shared locks. More...

Inheritance diagram for PostgreSqlLockManager:
Collaboration diagram for PostgreSqlLockManager:

List of all members.

Protected Member Functions

 doGetLocksOnServer ($lockSrv, array $paths, $type)
 releaseAllLocks ()

Protected Attributes

Array $lockTypeMap
 Mapping of lock types to the type actually used *.

Detailed Description

PostgreSQL version of DBLockManager that supports shared locks.

All locks are non-blocking, which avoids deadlocks.

Definition at line 357 of file DBLockManager.php.


Member Function Documentation

PostgreSqlLockManager::doGetLocksOnServer ( lockSrv,
array paths,
type 
) [protected]

Definition at line 364 of file DBLockManager.php.

See also:
QuorumLockManager::releaseAllLocks()
Returns:
Status

Reimplemented from QuorumLockManager.

Definition at line 414 of file DBLockManager.php.

References as, Status\newGood(), and DatabaseBase\query().


Member Data Documentation

Array PostgreSqlLockManager::$lockTypeMap [protected]
Initial value:
 array(
        self::LOCK_SH => self::LOCK_SH,
        self::LOCK_UW => self::LOCK_SH,
        self::LOCK_EX => self::LOCK_EX
    )

Mapping of lock types to the type actually used *.

Reimplemented from LockManager.

Definition at line 358 of file DBLockManager.php.


The documentation for this class was generated from the following file: