Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binlog-filter: add new event type #655

Merged
merged 15 commits into from
Jul 13, 2022
Prev Previous commit
Next Next commit
fix error
asddongmen committed Jul 4, 2022
commit e5834c558a540c3c19d6878d1c45028c8ffe5ce8
4 changes: 2 additions & 2 deletions pkg/binlog-filter/filter.go
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ func ClassifyEvent(event EventType) (EventType, error) {
ShardRowID, ModifyTableComment, RenameIndex, AddTablePartition, DropTablePartition,
TruncateTablePartition, ModifyTableCharsetAndCollate, ModifySchemaCharsetAndCollate,
RecoverTable, LockTable, UnlockTable, RepairTable, SetTiFlashReplica,
UpdateTiFlashReplica, AddPrimaryKey, DropPrimaryKey, CreateSequence,
UpdateTiFlashReplicaStatus, AddPrimaryKey, DropPrimaryKey, CreateSequence,
AlterSequence, DropSequence, CreateSchema, DropSchema, AddIndex:
return ddl, nil
case NullEvent:
@@ -183,7 +183,7 @@ func (b *BinlogEventRule) toEvent(es string) (EventType, error) {
AddTablePartition, DropTablePartition, TruncateTablePartition,
ModifyTableCharsetAndCollate, ModifySchemaCharsetAndCollate,
RecoverTable, LockTable, UnlockTable, RepairTable,
SetTiFlashReplica, UpdateTiFlashReplica, AddPrimaryKey, DropPrimaryKey,
SetTiFlashReplica, UpdateTiFlashReplicaStatus, AddPrimaryKey, DropPrimaryKey,
CreateSequence, AlterSequence, DropSequence:
return event, nil
case CreateSchema: // alias of CreateDatabase