Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1076,8 +1076,6 @@ |
1077 | 1077 | 'fr_img_sha1' => $fileData ? $fileData['sha1'] : null |
1078 | 1078 | ); |
1079 | 1079 | |
1080 | | - # Start! |
1081 | | - $dbw->begin(); |
1082 | 1080 | # Update flagged revisions table |
1083 | 1081 | $dbw->replace( 'flaggedrevs', |
1084 | 1082 | array( array('fr_page_id','fr_rev_id') ), $revisionset, |
— | — | @@ -1103,9 +1101,7 @@ |
1104 | 1102 | } |
1105 | 1103 | # Update the article review log |
1106 | 1104 | RevisionReview::updateLog( $title, $flags, array(), '', $rev->getId(), $oldSvId, true, true ); |
1107 | | - $dbw->commit(); |
1108 | 1105 | |
1109 | | - $dbw->begin(); |
1110 | 1106 | # If we know that this is now the new stable version |
1111 | 1107 | # (which it probably is), save it to the cache... |
1112 | 1108 | $sv = FlaggedRevision::newFromStable( $article->getTitle(), FR_FOR_UPDATE ); |
— | — | @@ -1120,8 +1116,6 @@ |
1121 | 1117 | $data = FlaggedRevs::makeMemcObj( "true" ); |
1122 | 1118 | $wgMemc->set( $key, $data, $wgParserCacheExpireTime ); |
1123 | 1119 | } |
1124 | | - # Done! |
1125 | | - $dbw->commit(); |
1126 | 1120 | |
1127 | 1121 | wfProfileOut( __METHOD__ ); |
1128 | 1122 | return true; |
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -200,7 +200,6 @@ |
201 | 201 | } |
202 | 202 | |
203 | 203 | $dbw = wfGetDB( DB_MASTER ); |
204 | | - $dbw->begin(); |
205 | 204 | # Get current config |
206 | 205 | $row = $dbw->selectRow( 'flaggedpage_config', |
207 | 206 | array( 'fpc_select', 'fpc_override', 'fpc_expiry' ), |
— | — | @@ -283,7 +282,6 @@ |
284 | 283 | } else { |
285 | 284 | $wgUser->removeWatch( $this->page ); |
286 | 285 | } |
287 | | - $dbw->commit(); |
288 | 286 | |
289 | 287 | $wgOut->redirect( $this->page->getFullUrl() ); |
290 | 288 | |
Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -84,9 +84,7 @@ |
85 | 85 | } |
86 | 86 | # Mark as patrolled |
87 | 87 | $dbw = wfGetDB( DB_MASTER ); |
88 | | - $dbw->begin(); |
89 | 88 | $changed = RecentChange::markPatrolled( $this->rcid ); |
90 | | - $dbw->commit(); |
91 | 89 | # Inform the user |
92 | 90 | $wgOut->addWikiText( wfMsg( 'revreview-patrolled', $this->page->getPrefixedText() ) ); |
93 | 91 | $wgOut->returnToMain( false, SpecialPage::getTitleFor( 'Recentchanges' ) ); |
— | — | @@ -677,9 +675,7 @@ |
678 | 676 | self::updateRecentChanges( $this->page, $rev->getId(), $this->rcid ); |
679 | 677 | # Update the article review log |
680 | 678 | self::updateLog( $this->page, $this->dims, $this->oflags, $this->comment, $this->oldid, $oldSvId, true ); |
681 | | - $dbw->commit(); |
682 | 679 | |
683 | | - $dbw->begin(); |
684 | 680 | # Update the links tables as the stable version may now be the default page. |
685 | 681 | # Try using the parser cache first since we didn't actually edit the current version. |
686 | 682 | $parserCache = ParserCache::singleton(); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -155,7 +155,6 @@ |
156 | 156 | } |
157 | 157 | wfProfileIn( __METHOD__ ); |
158 | 158 | $dbw = wfGetDB( DB_MASTER ); |
159 | | - $dbw->begin(); |
160 | 159 | # Check if this page has a stable version by fetching it. |
161 | 160 | # Try the process cache... |
162 | 161 | $sv = isset($u->fr_stableRev) ? |
— | — | @@ -229,7 +228,6 @@ |
230 | 229 | if ( count($insertions) ) { |
231 | 230 | $dbw->insert( 'flaggedrevs_tracking', $insertions, __METHOD__, 'IGNORE' ); |
232 | 231 | } |
233 | | - $dbw->commit(); |
234 | 232 | wfProfileOut( __METHOD__ ); |
235 | 233 | return true; |
236 | 234 | } |