From 2762888e0d0ee50dc171eca771285e7c8a2ed679 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 26 Feb 2015 15:45:29 -0800 Subject: [PATCH] Made "maxAffected" query expectation actually apply Change-Id: Ib7796fe0975b50b96c5e1d53384079735eea881d --- includes/MediaWiki.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index c21f5e9696..9428d4992d 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -497,6 +497,7 @@ class MediaWiki { $trxProfiler = Profiler::instance()->getTransactionProfiler(); $trxProfiler->setExpectation( 'masterConns', 0, __METHOD__ ); $trxProfiler->setExpectation( 'writes', 0, __METHOD__ ); + } else { $trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ ); } -- 2.20.1