if ( $this->hasOption( 'slave' ) && $db->getLBInfo( 'master' ) !== null ) {
$this->error( "The server selected ({$db->getServer()}) is not a slave.", 1 );
}
if ( $this->hasOption( 'slave' ) && $db->getLBInfo( 'master' ) !== null ) {
$this->error( "The server selected ({$db->getServer()}) is not a slave.", 1 );
}