MediaWiki
1.28.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 10 of file MySQLMasterPos.php.
MySQLMasterPos::__construct | ( | $file, | |
$pos, | |||
$gtid = '' |
|||
) |
string | $file | Binlog file name |
integer | $pos | Binlog position |
string | $gtid | Comma separated GTID set [optional] |
Definition at line 25 of file MySQLMasterPos.php.
References $file, $pos, asOfTime(), and file.
MySQLMasterPos::__toString | ( | ) |
Implements DBMasterPos.
Definition at line 35 of file MySQLMasterPos.php.
MySQLMasterPos::asOfTime | ( | ) |
Implements DBMasterPos.
Definition at line 39 of file MySQLMasterPos.php.
References $asOfTime.
Referenced by __construct().
MySQLMasterPos::channelsMatch | ( | DBMasterPos | $pos | ) |
DBMasterPos | $pos |
Implements DBMasterPos.
Definition at line 73 of file MySQLMasterPos.php.
References getBinlogCoordinates(), and getGtidCoordinates().
Referenced by DatabaseMysqlBaseTest\testChannelsMatch(), and DatabaseMysqlBaseTest\testHasReached().
|
protected |
Definition at line 124 of file MySQLMasterPos.php.
Referenced by channelsMatch(), and hasReached().
|
protected |
Definition at line 99 of file MySQLMasterPos.php.
References as.
Referenced by channelsMatch(), and hasReached().
MySQLMasterPos::hasReached | ( | DBMasterPos | $pos | ) |
DBMasterPos | $pos |
Implements DBMasterPos.
Definition at line 43 of file MySQLMasterPos.php.
References as, getBinlogCoordinates(), and getGtidCoordinates().
Referenced by DatabaseMysqlBaseTest\testHasReached().
float MySQLMasterPos::$asOfTime = 0.0 |
string MySQLMasterPos::$file |
string [] MySQLMasterPos::$gtids = [] |
GTID list.
Definition at line 16 of file MySQLMasterPos.php.
int MySQLMasterPos::$pos |
Binglog file position.
Definition at line 14 of file MySQLMasterPos.php.
Referenced by __construct().