|
MediaWiki
master
|
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 1489 of file DatabaseMysqlBase.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 1504 of file DatabaseMysqlBase.php.
References $file, $pos, asOfTime(), and file.
| MySQLMasterPos::__toString | ( | ) |
Implements DBMasterPos.
Definition at line 1514 of file DatabaseMysqlBase.php.
| MySQLMasterPos::asOfTime | ( | ) |
Implements DBMasterPos.
Definition at line 1518 of file DatabaseMysqlBase.php.
References $asOfTime.
Referenced by __construct().
| MySQLMasterPos::channelsMatch | ( | DBMasterPos | $pos | ) |
| DBMasterPos | $pos |
Implements DBMasterPos.
Definition at line 1552 of file DatabaseMysqlBase.php.
References getBinlogCoordinates(), and getGtidCoordinates().
Referenced by DatabaseMysqlBaseTest\testChannelsMatch(), and DatabaseMysqlBaseTest\testHasReached().
|
protected |
Definition at line 1603 of file DatabaseMysqlBase.php.
Referenced by channelsMatch(), and hasReached().
|
protected |
Definition at line 1578 of file DatabaseMysqlBase.php.
References as.
Referenced by channelsMatch(), and hasReached().
| MySQLMasterPos::hasReached | ( | DBMasterPos | $pos | ) |
| DBMasterPos | $pos |
Implements DBMasterPos.
Definition at line 1522 of file DatabaseMysqlBase.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 1495 of file DatabaseMysqlBase.php.
| int MySQLMasterPos::$pos |
Binglog file position.
Definition at line 1493 of file DatabaseMysqlBase.php.
Referenced by __construct().