|
14 | 14 | BeginLoadQueryEvent, ExecuteLoadQueryEvent,
|
15 | 15 | HeartbeatLogEvent, NotImplementedEvent, MariadbGtidEvent,
|
16 | 16 | MariadbAnnotateRowsEvent, RandEvent, MariadbStartEncryptionEvent, RowsQueryLogEvent,
|
17 |
| - MariadbGtidListEvent, MariadbBinLogCheckPointEvent, UserVarEvent) |
| 17 | + MariadbGtidListEvent, MariadbBinLogCheckPointEvent, UserVarEvent, |
| 18 | + PreviousGtidsEvent) |
18 | 19 | from .exceptions import BinLogNotEnabled
|
19 | 20 | from .gtid import GtidSet
|
20 | 21 | from .packet import BinLogPacketWrapper
|
@@ -183,7 +184,7 @@ def __init__(self, connection_settings, server_id,
|
183 | 184 | to point to Mariadb specific GTID.
|
184 | 185 | annotate_rows_event: Parameter value to enable annotate rows event in mariadb,
|
185 | 186 | used with 'is_mariadb'
|
186 |
| - ignore_decode_errors: If true, any decode errors encountered |
| 187 | + ignore_decode_errors: If true, any decode errors encountered |
187 | 188 | when reading column data will be ignored.
|
188 | 189 | verify_checksum: If true, verify events read from the binary log by examining checksums.
|
189 | 190 | """
|
@@ -478,7 +479,7 @@ def __set_mariadb_settings(self):
|
478 | 479 |
|
479 | 480 | flags = 0
|
480 | 481 |
|
481 |
| - # Enable annotate rows event |
| 482 | + # Enable annotate rows event |
482 | 483 | if self.__annotate_rows_event:
|
483 | 484 | flags |= 0x02 # BINLOG_SEND_ANNOTATE_ROWS_EVENT
|
484 | 485 |
|
@@ -631,7 +632,8 @@ def _allowed_event_list(self, only_events, ignored_events,
|
631 | 632 | MariadbStartEncryptionEvent,
|
632 | 633 | MariadbGtidListEvent,
|
633 | 634 | MariadbBinLogCheckPointEvent,
|
634 |
| - UserVarEvent |
| 635 | + UserVarEvent, |
| 636 | + PreviousGtidsEvent |
635 | 637 | ))
|
636 | 638 | if ignored_events is not None:
|
637 | 639 | for e in ignored_events:
|
|
0 commit comments