From dc8283a386421128f042e51a041c91d684dba432 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 12 Mar 2014 14:05:33 -0700 Subject: [PATCH] Call ignore_user_abort() right before committing to the DB Change-Id: I48b9e90418c38c7c9970cf0739a877b5be3a2b64 --- includes/Wiki.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Wiki.php b/includes/Wiki.php index d78d7cb656..69cfe9dd5a 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -587,6 +587,9 @@ class MediaWiki { // Actually do the work of the request and build up any output $this->performRequest(); + // Either all DB and deferred updates should happen or none. + // The later should not be cancelled due to client disconnect. + ignore_user_abort( true ); // Now commit any transactions, so that unreported errors after // output() don't roll back the whole DB transaction wfGetLBFactory()->commitMasterChanges(); -- 2.20.1