Index: trunk/phase3/maintenance/deleteSelfExternals.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | $db = wfGetDB( DB_MASTER ); |
42 | 42 | while ( 1 ) { |
43 | 43 | wfWaitForSlaves(); |
44 | | - $db->commit(); |
| 44 | + $db->commit( __METHOD__ ); |
45 | 45 | $q = $db->limitResult( "DELETE /* deleteSelfExternals */ FROM externallinks WHERE el_to" |
46 | 46 | . $db->buildLike( $wgServer . '/', $db->anyString() ), $this->mBatchSize ); |
47 | 47 | $this->output( "Deleting a batch\n" ); |
Index: trunk/phase3/maintenance/nukePage.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | $this->output( "done.\n" ); |
75 | 75 | } |
76 | 76 | |
77 | | - $dbw->commit(); |
| 77 | + $dbw->commit( __METHOD__ ); |
78 | 78 | |
79 | 79 | # Delete revisions as appropriate |
80 | 80 | if ( $delete && $count ) { |
Index: trunk/phase3/maintenance/updateSpecialPages.php |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | $this->output( "Reconnected\n\n" ); |
130 | 130 | } else { |
131 | 131 | # Commit the results |
132 | | - $dbw->commit(); |
| 132 | + $dbw->commit( __METHOD__ ); |
133 | 133 | } |
134 | 134 | # Wait for the slave to catch up |
135 | 135 | wfWaitForSlaves(); |
Index: trunk/phase3/maintenance/cleanupImages.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | if ( !file_exists( $dir ) ) { |
175 | 175 | if ( !wfMkdirParents( $dir, null, __METHOD__ ) ) { |
176 | 176 | $this->output( "RENAME FAILED, COULD NOT CREATE $dir" ); |
177 | | - $db->rollback(); |
| 177 | + $db->rollback( __METHOD__ ); |
178 | 178 | return; |
179 | 179 | } |
180 | 180 | } |
Index: trunk/phase3/maintenance/fixSlaveDesync.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | /* |
100 | 100 | if ( !$db->masterPosWait( $masterFile, $masterPos, 10 ) ) { |
101 | 101 | $this->output( "Slave is too lagged, aborting\n" ); |
102 | | - $dbw->commit(); |
| 102 | + $dbw->commit( __METHOD__ ); |
103 | 103 | sleep(10); |
104 | 104 | return; |
105 | 105 | }*/ |