From: Aaron Schulz Date: Wed, 12 Mar 2014 21:05:33 +0000 (-0700) Subject: Call ignore_user_abort() right before committing to the DB X-Git-Tag: 1.31.0-rc.0~16581^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=dc8283a386421128f042e51a041c91d684dba432;p=lhc%2Fweb%2Fwiklou.git Call ignore_user_abort() right before committing to the DB Change-Id: I48b9e90418c38c7c9970cf0739a877b5be3a2b64 --- 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();