X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=3b463ae4bd6d5334e977f686069423ad04364398;hb=db00239568969a41148cfdec0a77436f73fe802d;hp=c21f5e9696296f4833718e1f622c6b42197346f5;hpb=b767edc892b81c3be688b9f4a4004433e9c5132c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index c21f5e9696..3b463ae4bd 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -489,14 +489,16 @@ class MediaWiki { $action = $this->getAction(); $wgTitle = $title; + $trxProfiler = Profiler::instance()->getTransactionProfiler(); + // Aside from rollback, master queries should not happen on GET requests. // Periodic or "in passing" updates on GET should use the job queue. if ( !$request->wasPosted() && in_array( $action, array( 'view', 'edit', 'history' ) ) ) { - $trxProfiler = Profiler::instance()->getTransactionProfiler(); $trxProfiler->setExpectation( 'masterConns', 0, __METHOD__ ); $trxProfiler->setExpectation( 'writes', 0, __METHOD__ ); + } else { $trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ ); }