From a1d96e3c5f44c7e9db9ca131c3a05b57bf57e32b Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Fri, 9 Jul 2004 17:37:03 +0000 Subject: [PATCH] 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. --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" ); ?> -- 2.20.1