From: Jens Frank Date: Fri, 9 Jul 2004 17:37:03 +0000 (+0000) Subject: LinksUpdate uses SELECT FOR UPDATE, thus starting a new transaction. So we have to... X-Git-Tag: 1.5.0alpha1~2706 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=a1d96e3c5f44c7e9db9ca131c3a05b57bf57e32b;p=lhc%2Fweb%2Fwiklou.git LinksUpdate uses SELECT FOR UPDATE, thus starting a new transaction. So we have to call COMMIT for it. The big BEGIN...COMMIT loop of the action=...-switch() doesn't catch the wgDeferredUpdateList. --- diff --git a/index.php b/index.php index d1018eb235..992a28b193 100644 --- a/index.php +++ b/index.php @@ -170,7 +170,11 @@ if ( $search = $wgRequest->getText( 'search' ) ) { $wgOut->output(); -foreach ( $wgDeferredUpdateList as $up ) { $up->doUpdate(); } +foreach ( $wgDeferredUpdateList as $up ) { + wfQuery("BEGIN", DB_WRITE); + $up->doUpdate(); + wfQuery("COMMIT", DB_WRITE); +} logProfilingData(); wfDebug( "Request ended normally\n" ); ?>