aboutsummaryrefslogtreecommitdiffstats
path: root/includes/db/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/db/Database.php')
-rw-r--r--includes/db/Database.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/db/Database.php b/includes/db/Database.php
index 6945cebbb2ce..30377699543c 100644
--- a/includes/db/Database.php
+++ b/includes/db/Database.php
@@ -840,9 +840,13 @@ abstract class DatabaseBase implements DatabaseType {
throw new MWException( 'Tainted query found' );
}
+ $queryId = MWDebug::query( $sql, $fname, $isMaster );
+
# Do the query and handle errors
$ret = $this->doQuery( $commentedSql );
+ MWDebug::queryTime( $queryId );
+
# Try reconnecting if the connection was lost
if ( false === $ret && $this->wasErrorReissuable() ) {
# Transaction is gone, like it or not