r82070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82069‎ | r82070 | r82071 >
Date:19:12, 13 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Add profiling to removeWatch
Modified paths:
  • /trunk/phase3/includes/WatchedItem.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WatchedItem.php
@@ -84,6 +84,8 @@
8585 * @return bool
8686 */
8787 public function removeWatch() {
 88+ wfProfileIn( __METHOD__ );
 89+
8890 $success = false;
8991 $dbw = wfGetDB( DB_MASTER );
9092 $dbw->delete( 'watchlist',
@@ -112,6 +114,8 @@
113115 if ( $dbw->affectedRows() ) {
114116 $success = true;
115117 }
 118+
 119+ wfProfileOut( __METHOD__ );
116120 return $success;
117121 }
118122

Follow-up revisions

RevisionCommit summaryAuthorDate
r821511.17wmf1: MFT r78964, r79086, r79087, r79091, r82004, r82025, r82048, r82070,...catrope22:55, 14 February 2011
r85151MFT: r82000, r82004, r82020, r82025, r82038, r82039, r82048, r82070, r82081, ...demon20:39, 1 April 2011

Status & tagging log