Merge "Do not auto-reconnect to DBs if named locks where lost"
[lhc/web/wiklou.git] / includes / db / Database.php
index 9315daf..a4d0ad0 100644 (file)
@@ -3181,6 +3181,7 @@ abstract class DatabaseBase implements IDatabase {
 
                $that = $this;
                $unlocker = new ScopedCallback( function () use ( $that, $lockKey, $fname ) {
+                       $that->commit( __METHOD__, 'flush' );
                        $that->unlock( $lockKey, $fname );
                } );