$this->context->getOutput()->output();
// Do any deferred jobs
wfDoUpdates( 'commit' );
-
$this->doJobs();
wfProfileOut( __METHOD__ );
}
$n = intval( $wgJobRunRate );
}
- // Close the session so that jobs don't access the current session
- $this->shutdownLBFactory();
- session_write_close();
-
while ( $n-- && false != ( $job = Job::pop() ) ) {
$output = $job->toString() . "\n";
$t = -wfTime();
public function restInPeace() {
MessageCache::logMessages();
wfLogProfilingData();
- $this->shutdownLBFactory();
- wfDebug( "Request ended normally\n" );
- }
-
- /**
- * Commit pending master changes, shutdown the current loadbalancer
- * factory and destroys the factory instance.
- */
- private function shutdownLBFactory() {
// Commit and close up!
- $factory = LBFactory::singleton();
+ $factory = wfGetLBFactory();
$factory->commitMasterChanges();
$factory->shutdown();
- LBFactory::destroyInstance();
+ wfDebug( "Request ended normally\n" );
}
/**