- $ticket = $options['transactionTicket'];
-
- if ( $options['defer'] === false && $ticket !== null ) {
- // For legacy hook handlers doing updates via LinksUpdateConstructed, make sure
- // any pending writes they made get flushed before the doUpdate() calls below.
- // This avoids snapshot-clearing errors in LinksUpdate::acquirePageLock().
- $this->loadbalancerFactory->commitAndWaitForReplication( __METHOD__, $ticket );
- }