Made "maxAffected" query expectation actually apply
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Feb 2015 23:45:29 +0000 (15:45 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Feb 2015 23:45:29 +0000 (15:45 -0800)
Change-Id: Ib7796fe0975b50b96c5e1d53384079735eea881d

includes/MediaWiki.php

index c21f5e9..9428d49 100644 (file)
@@ -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__ );
                }