Index: trunk/phase3/docs/database.txt |
— | — | @@ -146,9 +146,7 @@ |
147 | 147 | at the first query, and commits it before the output is sent. Locks will |
148 | 148 | be held from the time when the query is done until the commit. So you |
149 | 149 | can reduce lock time by doing as much processing as possible before you |
150 | | -do your write queries. Update operations which do not require database |
151 | | -access can be delayed until after the commit by adding an object to |
152 | | -$wgPostCommitUpdateList. |
| 150 | +do your write queries. |
153 | 151 | |
154 | 152 | Often this approach is not good enough, and it becomes necessary to |
155 | 153 | enclose small groups of queries in their own transaction. Use the |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2862,15 +2862,11 @@ |
2863 | 2863 | * TODO: This could be in Wiki.php if that class made any sense at all |
2864 | 2864 | */ |
2865 | 2865 | function wfDoUpdates() { |
2866 | | - global $wgPostCommitUpdateList, $wgDeferredUpdateList; |
| 2866 | + global $wgDeferredUpdateList; |
2867 | 2867 | foreach ( $wgDeferredUpdateList as $update ) { |
2868 | 2868 | $update->doUpdate(); |
2869 | 2869 | } |
2870 | | - foreach ( $wgPostCommitUpdateList as $update ) { |
2871 | | - $update->doUpdate(); |
2872 | | - } |
2873 | 2870 | $wgDeferredUpdateList = array(); |
2874 | | - $wgPostCommitUpdateList = array(); |
2875 | 2871 | } |
2876 | 2872 | |
2877 | 2873 | /** |
Index: trunk/phase3/includes/Setup.php |
— | — | @@ -379,7 +379,6 @@ |
380 | 380 | wfProfileIn( $fname.'-misc2' ); |
381 | 381 | |
382 | 382 | $wgDeferredUpdateList = array(); |
383 | | -$wgPostCommitUpdateList = array(); |
384 | 383 | |
385 | 384 | if ( $wgAjaxUploadDestCheck ) $wgAjaxExportList[] = 'SpecialUpload::ajaxGetExistsWarning'; |
386 | 385 | |
Index: trunk/phase3/index.php |
— | — | @@ -115,8 +115,5 @@ |
116 | 116 | $mediaWiki->performRequestForTitle( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest ); |
117 | 117 | $mediaWiki->finalCleanup( $wgDeferredUpdateList, $wgOut ); |
118 | 118 | |
119 | | -# Not sure when $wgPostCommitUpdateList gets set, so I keep this separate from finalCleanup |
120 | | -$mediaWiki->doUpdates( $wgPostCommitUpdateList ); |
121 | | - |
122 | 119 | $mediaWiki->restInPeace(); |
123 | 120 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -96,6 +96,7 @@ |
97 | 97 | of LocalSettings.php, in LocalSettings.php itself. Instead, this is done |
98 | 98 | automatically if $wgInvalidateCacheOnLocalSettingsChange is true (which is |
99 | 99 | the default). |
| 100 | +* (bug 26253) $wgPostCommitUpdateList has been removed |
100 | 101 | |
101 | 102 | === New features in 1.17 === |
102 | 103 | * (bug 10183) Users can now add personal styles and scripts to all skins via |