return $this->__call( __FUNCTION__, func_get_args() );
}
- public function getSlavePos() {
+ public function getReplicaPos() {
return $this->__call( __FUNCTION__, func_get_args() );
}
// with an old master hostname. Such calls make MASTER_POS_WAIT() return null. Try
// to detect this and treat the replica DB as having reached the position; a proper master
// switchover already requires that the new master be caught up before the switch.
- $replicationPos = $this->getSlavePos();
+ $replicationPos = $this->getReplicaPos();
if ( $replicationPos && !$replicationPos->channelsMatch( $pos ) ) {
$this->lastKnownReplicaPos = $replicationPos;
$status = 0;
*
* @return MySQLMasterPos|bool
*/
- function getSlavePos() {
+ function getReplicaPos() {
$res = $this->query( 'SHOW SLAVE STATUS', __METHOD__ );
$row = $this->fetchObject( $res );
*
* @return DBMasterPos|bool False if this is not a replica DB.
*/
- public function getSlavePos();
+ public function getReplicaPos();
/**
* Get the position of this master