Ignore DBPerformance thresholds in Special:ConfirmEmail
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 27 Aug 2015 01:40:43 +0000 (18:40 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 27 Aug 2015 01:40:43 +0000 (18:40 -0700)
Bug: T92357
Change-Id: I81a1a31de522c2390e9d4d515677731cce4fcf1f

includes/specials/SpecialConfirmemail.php

index 6356155..147f67e 100644 (file)
@@ -43,6 +43,10 @@ class EmailConfirmation extends UnlistedSpecialPage {
         * @throws UserNotLoggedIn
         */
        function execute( $code ) {
+               // Ignore things like master queries/connections on GET requests.
+               // It's very convenient to just allow formless link usage.
+               Profiler::instance()->getTransactionProfiler()->resetExpectations();
+
                $this->setHeaders();
 
                $this->checkReadOnly();
@@ -151,6 +155,10 @@ class EmailInvalidation extends UnlistedSpecialPage {
        }
 
        function execute( $code ) {
+               // Ignore things like master queries/connections on GET requests.
+               // It's very convenient to just allow formless link usage.
+               Profiler::instance()->getTransactionProfiler()->resetExpectations();
+
                $this->setHeaders();
                $this->checkReadOnly();
                $this->checkPermissions();