Avoid uncommitted transaction notices in thumb.php and img_auth.php
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 22 Apr 2014 04:59:43 +0000 (21:59 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 22 Apr 2014 15:40:42 +0000 (15:40 +0000)
bug: 56269
Change-Id: I8cf5c070899d281c7efbac853f04c2fea9374e4d

img_auth.php
thumb.php

index dc3dcd8..cce5bc9 100644 (file)
@@ -50,6 +50,10 @@ $wgActionPaths = array( "$wgUploadPath/" );
 
 wfImageAuthMain();
 wfLogProfilingData();
+// Commit and close up!
+$factory = wfGetLBFactory();
+$factory->commitMasterChanges();
+$factory->shutdown();
 
 function wfImageAuthMain() {
        global $wgImgAuthPublicTest, $wgImgAuthUrlPathMap;
index df6c416..bfaf9a0 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -36,6 +36,10 @@ if ( defined( 'THUMB_HANDLER' ) ) {
 }
 
 wfLogProfilingData();
+// Commit and close up!
+$factory = wfGetLBFactory();
+$factory->commitMasterChanges();
+$factory->shutdown();
 
 //--------------------------------------------------------------------------