Pass the right variable to recordQueryCompletion()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 13 Feb 2015 22:19:00 +0000 (14:19 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 15 Feb 2015 09:31:00 +0000 (09:31 +0000)
Change-Id: I0d75ed7dd55e40b63bd823ec43b8d3a8f5bed53b

includes/db/Database.php

index 538facb..8fa10a6 100644 (file)
@@ -1167,10 +1167,11 @@ abstract class DatabaseBase implements IDatabase {
                        $that = $this;
                        $queryStartTime = microtime( true );
                        $queryProfile = new ScopedCallback(
-                               function () use ( $that, $queryStartTime, $queryProf, $isMaster ) {
+                               function () use ( $that, $queryStartTime, $queryProf, $isWriteQuery ) {
                                        $n = $that->affectedRows();
                                        $trxProf = Profiler::instance()->getTransactionProfiler();
-                                       $trxProf->recordQueryCompletion( $queryProf, $queryStartTime, $isMaster, $n );
+                                       $trxProf->recordQueryCompletion(
+                                               $queryProf, $queryStartTime, $isWriteQuery, $n );
                                }
                        );
                }