From fc22415ba9fbd4d247a989ecdc09be8e8608d4a2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 13 Feb 2015 14:19:00 -0800 Subject: [PATCH] Pass the right variable to recordQueryCompletion() Change-Id: I0d75ed7dd55e40b63bd823ec43b8d3a8f5bed53b --- includes/db/Database.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); } ); } -- 2.20.1