r53531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53530‎ | r53531 | r53532 >
Date:05:40, 20 July 2009
Author:aaron
Status:ok
Tags:
Comment:
Make sure this commits too
Modified paths:
  • /trunk/phase3/maintenance/deleteArchivedFiles.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/deleteArchivedFiles.inc
@@ -13,6 +13,7 @@
1414 function DeleteArchivedFiles( $delete = false ) {
1515 # Data should come off the master, wrapped in a transaction
1616 $dbw = wfGetDB( DB_MASTER );
 17+ $dbw->begin();
1718 $tbl_arch = $dbw->tableName( 'filearchive' );
1819 $repo = RepoGroup::singleton()->getLocalRepo();
1920 # Get "active" revisions from the filearchive table
@@ -40,5 +41,6 @@
4142 echo( "Notice - file '$key' not found in group '$group'\n" );
4243 }
4344 }
 45+ $dbw->commit();
4446 echo( "Done! [$count file(s)]\n" );
4547 }

Status & tagging log