r112866 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112865‎ | r112866 | r112867 >
Date:01:34, 2 March 2012
Author:aaron
Status:ok
Tags:
Comment:
Added some lock call profiling
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php
@@ -56,7 +56,10 @@
5757 * @return Status
5858 */
5959 final public function lock( array $paths, $type = self::LOCK_EX ) {
60 - return $this->doLock( array_unique( $paths ), $this->lockTypeMap[$type] );
 60+ wfProfileIn( __METHOD__ );
 61+ $status = $this->doLock( array_unique( $paths ), $this->lockTypeMap[$type] );
 62+ wfProfileOut( __METHOD__ );
 63+ return $status;
6164 }
6265
6366 /**
@@ -67,7 +70,10 @@
6871 * @return Status
6972 */
7073 final public function unlock( array $paths, $type = self::LOCK_EX ) {
71 - return $this->doUnlock( array_unique( $paths ), $this->lockTypeMap[$type] );
 74+ wfProfileIn( __METHOD__ );
 75+ $status = $this->doUnlock( array_unique( $paths ), $this->lockTypeMap[$type] );
 76+ wfProfileOut( __METHOD__ );
 77+ return $status;
7278 }
7379
7480 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r112867MFT r112866aaron01:35, 2 March 2012

Status & tagging log