r114442 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114441‎ | r114442 | r114443 >
Date:06:38, 23 March 2012
Author:tstarling
Status:ok (Comments)
Tags:live 
Comment:
Transaction for site_stats update, for bug 35047
Modified paths:
  • /branches/wmf/1.19wmf1/includes/filerepo/file/LocalFile.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/filerepo/file/LocalFile.php
@@ -1261,7 +1261,9 @@
12621262 if ( $status->ok ) {
12631263 // Update site_stats
12641264 $site_stats = $dbw->tableName( 'site_stats' );
 1265+ $dbw->begin();
12651266 $dbw->query( "UPDATE $site_stats SET ss_images=ss_images-1", __METHOD__ );
 1267+ $dbw->commit();
12661268 $this->purgeEverything();
12671269 }
12681270

Comments

#Comment by Aaron Schulz (talk | contribs)   04:48, 24 March 2012

The unlock() call below is now misleading. But this functionality ok.

Status & tagging log