r62042 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62041‎ | r62042 | r62043 >
Date:19:04, 5 February 2010
Author:aaron
Status:ok
Tags:
Comment:
Lock the flaggedpage_config row until the config change is done
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php
@@ -433,7 +433,8 @@
434434 $row = $dbw->selectRow( 'flaggedpage_config',
435435 array( 'fpc_select', 'fpc_override', 'fpc_level', 'fpc_expiry' ),
436436 array( 'fpc_page_id' => $this->page->getArticleID() ),
437 - __METHOD__
 437+ __METHOD__,
 438+ 'FOR UPDATE'
438439 );
439440 # If setting to site default values and there is a row...erase it
440441 if ( $row && $reset ) {

Status & tagging log