Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Sep 5, 2024
1 parent a9d89b2 commit 249d122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/statistics/handle/ddl/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ func (h *ddlHandlerImpl) HandleDDLEvent(t *util.DDLEvent) error {
return nil
}
}
logutil.StatsLogger().Info("Handle ddl event", zap.Stringer("event", t))
if t.SchemaChangeEvent == nil {
// when SchemaChangeEvent is set, it will be printed in the default branch of
// below switch.
logutil.StatsLogger().Info("Handle ddl event", zap.Stringer("event", t))
}

switch t.GetType() {
case model.ActionDropTable:
Expand Down

0 comments on commit 249d122

Please sign in to comment.