Skip to content

Commit

Permalink
Update links to mysql bin log documentation (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
DZunke authored Mar 13, 2024
1 parent d9107c8 commit 79085c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MySQLReplication/Definitions/ConstEventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace MySQLReplication\Definitions;

/**
* @see https://dev.mysql.com/doc/internals/en/event-classes-and-types.html
* @see https://github.com/mysql/mysql-server/blob/824e2b4064053f7daf17d7f3f84b7a3ed92e5fb4/libs/mysql/binlog/event/binlog_event.h#L285 (MySQL binlog_event.h)
*/
enum ConstEventType: int
{
Expand Down
5 changes: 4 additions & 1 deletion src/MySQLReplication/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function consume(): void
{
$binaryDataReader = new BinaryDataReader($this->binLogSocketConnect->getResponse());

// check EOF_Packet -> https://dev.mysql.com/doc/internals/en/packet-EOF_Packet.html
// check EOF_Packet -> https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_eof_packet.html
if ($binaryDataReader->readUInt8() === self::EOF_HEADER_VALUE) {
return;
}
Expand Down Expand Up @@ -127,6 +127,9 @@ private function makeEvent(BinaryDataReader $binaryDataReader): ?EventDTO
return null;
}

/**
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_binlog_event_header
*/
private function createEventInfo(BinaryDataReader $binaryDataReader): EventInfo
{
return new EventInfo(
Expand Down
2 changes: 1 addition & 1 deletion src/MySQLReplication/Event/QueryEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use MySQLReplication\Event\DTO\QueryDTO;

/**
* @see https://dev.mysql.com/doc/internals/en/query-event.html
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_query
*/
class QueryEvent extends EventCommon
{
Expand Down
2 changes: 1 addition & 1 deletion src/MySQLReplication/Event/RotateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use MySQLReplication\Event\DTO\RotateDTO;

/**
* @see https://dev.mysql.com/doc/internals/en/rotate-event.html
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_rotate
*/
class RotateEvent extends EventCommon
{
Expand Down
3 changes: 3 additions & 0 deletions src/MySQLReplication/Event/XidEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use MySQLReplication\Event\DTO\XidDTO;

/**
* @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_xid
*/
class XidEvent extends EventCommon
{
public function makeXidDTO(): XidDTO
Expand Down

0 comments on commit 79085c5

Please sign in to comment.