Index: trunk/phase3/maintenance/deleteArchivedFiles.inc |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | function DeleteArchivedFiles( $delete = false ) { |
15 | 15 | # Data should come off the master, wrapped in a transaction |
16 | 16 | $dbw = wfGetDB( DB_MASTER ); |
| 17 | + $dbw->begin(); |
17 | 18 | $tbl_arch = $dbw->tableName( 'filearchive' ); |
18 | 19 | $repo = RepoGroup::singleton()->getLocalRepo(); |
19 | 20 | # Get "active" revisions from the filearchive table |
— | — | @@ -40,5 +41,6 @@ |
41 | 42 | echo( "Notice - file '$key' not found in group '$group'\n" ); |
42 | 43 | } |
43 | 44 | } |
| 45 | + $dbw->commit(); |
44 | 46 | echo( "Done! [$count file(s)]\n" ); |
45 | 47 | } |