MediaWiki
1.30.0
|
DBMasterPos class for MySQL/MariaDB. More...
Public Member Functions | |
__construct ( $file, $pos, $gtid='') | |
__toString () | |
asOfTime () | |
channelsMatch (DBMasterPos $pos) | |
hasReached (DBMasterPos $pos) | |
Public Attributes | |
float | $asOfTime = 0.0 |
UNIX timestamp. More... | |
string | $file |
Binlog file. More... | |
string[] | $gtids = [] |
GTID list. More... | |
int | $pos |
Binglog file position. More... | |
Protected Member Functions | |
getBinlogCoordinates () | |
getGtidCoordinates () | |
DBMasterPos class for MySQL/MariaDB.
Note that master positions and sync logic here make some assumptions:
Definition at line 15 of file MySQLMasterPos.php.
Wikimedia\Rdbms\MySQLMasterPos::__construct | ( | $file, | |
$pos, | |||
$gtid = '' |
|||
) |
string | $file | Binlog file name |
int | $pos | Binlog position |
string | $gtid | Comma separated GTID set [optional] |
Definition at line 30 of file MySQLMasterPos.php.
References Wikimedia\Rdbms\MySQLMasterPos\$file, Wikimedia\Rdbms\MySQLMasterPos\$pos, Wikimedia\Rdbms\MySQLMasterPos\asOfTime(), and file.
Wikimedia\Rdbms\MySQLMasterPos::__toString | ( | ) |
Implements Wikimedia\Rdbms\DBMasterPos.
Definition at line 40 of file MySQLMasterPos.php.
Wikimedia\Rdbms\MySQLMasterPos::asOfTime | ( | ) |
Implements Wikimedia\Rdbms\DBMasterPos.
Definition at line 44 of file MySQLMasterPos.php.
References Wikimedia\Rdbms\MySQLMasterPos\$asOfTime.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\__construct().
Wikimedia\Rdbms\MySQLMasterPos::channelsMatch | ( | DBMasterPos | $pos | ) |
DBMasterPos | $pos |
Implements Wikimedia\Rdbms\DBMasterPos.
Definition at line 78 of file MySQLMasterPos.php.
References Wikimedia\Rdbms\MySQLMasterPos\$pos, Wikimedia\Rdbms\MySQLMasterPos\getBinlogCoordinates(), and Wikimedia\Rdbms\MySQLMasterPos\getGtidCoordinates().
Referenced by DatabaseMysqlBaseTest\testChannelsMatch(), and DatabaseMysqlBaseTest\testHasReached().
|
protected |
Definition at line 129 of file MySQLMasterPos.php.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), and Wikimedia\Rdbms\MySQLMasterPos\hasReached().
|
protected |
Definition at line 104 of file MySQLMasterPos.php.
References as.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), and Wikimedia\Rdbms\MySQLMasterPos\hasReached().
Wikimedia\Rdbms\MySQLMasterPos::hasReached | ( | DBMasterPos | $pos | ) |
DBMasterPos | $pos |
Implements Wikimedia\Rdbms\DBMasterPos.
Definition at line 48 of file MySQLMasterPos.php.
References Wikimedia\Rdbms\MySQLMasterPos\$pos, as, Wikimedia\Rdbms\MySQLMasterPos\getBinlogCoordinates(), and Wikimedia\Rdbms\MySQLMasterPos\getGtidCoordinates().
Referenced by DatabaseMysqlBaseTest\testHasReached().
float Wikimedia\Rdbms\MySQLMasterPos::$asOfTime = 0.0 |
UNIX timestamp.
Definition at line 23 of file MySQLMasterPos.php.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\asOfTime().
string Wikimedia\Rdbms\MySQLMasterPos::$file |
Binlog file.
Definition at line 17 of file MySQLMasterPos.php.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\__construct().
string [] Wikimedia\Rdbms\MySQLMasterPos::$gtids = [] |
GTID list.
Definition at line 21 of file MySQLMasterPos.php.
int Wikimedia\Rdbms\MySQLMasterPos::$pos |
Binglog file position.
Definition at line 19 of file MySQLMasterPos.php.
Referenced by Wikimedia\Rdbms\MySQLMasterPos\__construct(), Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), and Wikimedia\Rdbms\MySQLMasterPos\hasReached().