Merge "RevisionStore: Avoid exception on prev/next of deleted revision"
[lhc/web/wiklou.git] / includes / api / ApiRollback.php
index db57f7e..10ba478 100644 (file)
@@ -59,6 +59,9 @@ class ApiRollback extends ApiBase {
                $trxLimits = $this->getConfig()->get( 'TrxProfilerLimits' );
                $trxProfiler = Profiler::instance()->getTransactionProfiler();
                $trxProfiler->setExpectations( $trxLimits['POST'], __METHOD__ );
+               DeferredUpdates::addCallableUpdate( function () use ( $trxProfiler, $trxLimits ) {
+                       $trxProfiler->setExpectations( $trxLimits['PostSend-POST'], __METHOD__ );
+               } );
 
                $retval = $pageObj->doRollback(
                        $this->getRbUser( $params ),