From: Aaron Schulz Date: Fri, 13 Feb 2015 22:19:00 +0000 (-0800) Subject: Pass the right variable to recordQueryCompletion() X-Git-Tag: 1.31.0-rc.0~12406 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=fc22415ba9fbd4d247a989ecdc09be8e8608d4a2;p=lhc%2Fweb%2Fwiklou.git Pass the right variable to recordQueryCompletion() Change-Id: I0d75ed7dd55e40b63bd823ec43b8d3a8f5bed53b --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 538facb56a..8fa10a633d 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -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 ); } ); }