Replace unecessary rollbackMasterChangesAndLog() call in doPostOutputShutdown()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Aug 2019 05:21:36 +0000 (22:21 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Aug 2019 05:21:36 +0000 (22:21 -0700)
The called method should not touch the databases

Change-Id: Ic1e242240a8676c5f9b6d5bce2b901412629e238

includes/MediaWiki.php

index 7a6987e..f91477a 100644 (file)
@@ -745,7 +745,7 @@ class MediaWiki {
                        Profiler::instance()->logDataPageOutputOnly();
                } catch ( Exception $e ) {
                        // An error may already have been shown in run(), so just log it to be safe
-                       MWExceptionHandler::rollbackMasterChangesAndLog( $e );
+                       MWExceptionHandler::logException( $e );
                }
 
                // Disable WebResponse setters for post-send processing (T191537).