return;
}
- $dbw->onTransactionIdle(
+ DeferredUpdates::addUpdate( new AutoCommitUpdate(
+ $dbw,
+ __METHOD__,
function () use ( $dbw, $namespace, $dbkeys ) {
$services = MediaWikiServices::getInstance();
$lbFactory = $services->getDBLoadBalancerFactory();
);
$lbFactory->commitAndWaitForReplication( __METHOD__, $ticket );
}
- },
- __METHOD__
- );
+ }
+ ) );
}
}