wfGetLBFactory()->forEachLB( function( LoadBalancer $lb ) use ( $fname ) {
$lb->forEachOpenConnection( function( IDatabase $conn ) use ( $fname ) {
if ( $conn->writesOrCallbacksPending() ) {
- $conn->query( "SELECT 1", $fname );
+ $conn->ping();
}
} );
} );