* (bug 26253) Removed $wgPostCommitUpdateList
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 6 Dec 2010 16:17:43 +0000 (16:17 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 6 Dec 2010 16:17:43 +0000 (16:17 +0000)
As I said on the bug, this variable is not used since ages

RELEASE-NOTES
docs/database.txt
includes/GlobalFunctions.php
includes/Setup.php
index.php

index 2fa6d15..2a84135 100644 (file)
@@ -96,6 +96,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
   of LocalSettings.php, in LocalSettings.php itself. Instead, this is done 
   automatically if $wgInvalidateCacheOnLocalSettingsChange is true (which is 
   the default). 
+* (bug 26253) $wgPostCommitUpdateList has been removed
 
 === New features in 1.17 ===
 * (bug 10183) Users can now add personal styles and scripts to all skins via
index 555347d..b9fa6ff 100644 (file)
@@ -146,9 +146,7 @@ to avoid long-lasting locks. By default, MediaWiki opens a transaction
 at the first query, and commits it before the output is sent. Locks will
 be held from the time when the query is done until the commit. So you
 can reduce lock time by doing as much processing as possible before you
-do your write queries. Update operations which do not require database
-access can be delayed until after the commit by adding an object to
-$wgPostCommitUpdateList.
+do your write queries.
 
 Often this approach is not good enough, and it becomes necessary to
 enclose small groups of queries in their own transaction. Use the
index b7a95a5..1d1a609 100644 (file)
@@ -2862,15 +2862,11 @@ function wfMakeUrlIndex( $url ) {
  * TODO: This could be in Wiki.php if that class made any sense at all
  */
 function wfDoUpdates() {
-       global $wgPostCommitUpdateList, $wgDeferredUpdateList;
+       global $wgDeferredUpdateList;
        foreach ( $wgDeferredUpdateList as $update ) {
                $update->doUpdate();
        }
-       foreach ( $wgPostCommitUpdateList as $update ) {
-               $update->doUpdate();
-       }
        $wgDeferredUpdateList = array();
-       $wgPostCommitUpdateList = array();
 }
 
 /**
index fbaac94..7c9fa49 100644 (file)
@@ -379,7 +379,6 @@ wfProfileOut( $fname.'-User' );
 wfProfileIn( $fname.'-misc2' );
 
 $wgDeferredUpdateList = array();
-$wgPostCommitUpdateList = array();
 
 if ( $wgAjaxUploadDestCheck ) $wgAjaxExportList[] = 'SpecialUpload::ajaxGetExistsWarning';
 
index dcea36b..b05ec51 100644 (file)
--- a/index.php
+++ b/index.php
@@ -115,8 +115,5 @@ $mediaWiki->setVal( 'UsePathInfo', $wgUsePathInfo );
 $mediaWiki->performRequestForTitle( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest );
 $mediaWiki->finalCleanup( $wgDeferredUpdateList, $wgOut );
 
-# Not sure when $wgPostCommitUpdateList gets set, so I keep this separate from finalCleanup
-$mediaWiki->doUpdates( $wgPostCommitUpdateList );
-
 $mediaWiki->restInPeace();