Skip to content

Commit

Permalink
schemastore: ignore system schema (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu authored Feb 18, 2025
1 parent bbd60cd commit 60a2dbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions logservice/schemastore/schema_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ func (s *schemaStore) writeDDLEvent(ddlEvent DDLJobWithCommitTs) {
zap.Uint64("finishedTs", ddlEvent.Job.BinlogInfo.FinishedTS),
zap.String("query", ddlEvent.Job.Query))

// TODO: find a better way to filter out system tables
if ddlEvent.Job.SchemaID != 1 {
if !filter.IsSysSchema(ddlEvent.Job.SchemaName) {
s.unsortedCache.addDDLEvent(ddlEvent)
}
}
Expand Down

0 comments on commit 60a2dbb

Please sign in to comment.