Merge "[LockManager] Split QuorumLockManager into its own file."
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 1 Feb 2013 18:04:13 +0000 (18:04 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 1 Feb 2013 18:04:13 +0000 (18:04 +0000)
includes/Exception.php
maintenance/doMaintenance.php
maintenance/fileOpPerfTest.php

index 0499b32..4cb946c 100644 (file)
@@ -573,7 +573,7 @@ class HttpError extends MWException {
         * @return int
         */
        public function getStatusCode() {
-               $this->httpCode;
+               return $this->httpCode;
        }
 
        /**
index 2bb2a0f..c6768bd 100644 (file)
@@ -111,6 +111,9 @@ try {
 
        // Potentially debug globals
        $maintenance->globals();
+
+       // log profiling info
+       wfLogProfilingData();
 } catch ( MWException $mwe ) {
        echo( $mwe->getText() );
        exit( 1 );
index d98cfe3..4cb5e10 100644 (file)
@@ -55,7 +55,8 @@ class TestFileOpPerformance extends Maintenance {
 
                $profiler = Profiler::instance();
                $profiler->setTemplated( true );
-               $profiler->logData(); // prints
+
+               //NOTE: as of MW1.21, $profiler->logData() is called implicitly by doMaintenance.php.
        }
 
        protected function doPerfTest( FileBackend $backend ) {