- // Assure deferred updates are not in the main transaction
- wfGetLBFactory()->commitMasterChanges();
- // Run jobs occasionally, if enabled
- if ( $mode === 'normal' ) {
- $that->triggerJobs();
- }
- // Do deferred updates and job insertion and final commit
- $that->restInPeace();