Using waitForOne() barely goes beyond semi-sync replication
already in place on serious DB clusters.
Change-Id: Idb719deaa5993bc2f818cd110d49d09567e0afb3
// This will trigger a rollback in the main loop
throw new DBError( $dbwSerial, "Timed out waiting on commit queue." );
}
- // Wait for the generic slave to catch up
+ // Wait for the slave DBs to catch up
$pos = $lb->getMasterPos();
if ( $pos ) {
- $lb->waitForOne( $pos );
+ $lb->waitForAll( $pos );
}
$fname = __METHOD__;