Skip to content

Commit ba49b41

Browse files
committed
chore
Signed-off-by: wk989898 <nhsmwk@gmail.com>
1 parent 2253947 commit ba49b41

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/common/event/redo.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,12 @@ type DDLEventInRedoLog struct {
8484
NeedAddedTables []Table `msg:"need_added_tables"`
8585
}
8686

87+
// ColumnInfo is for column meta in DDL event
8788
type ColumnInfo struct {
8889
Name string `msg:"name"`
8990
OriginDefaultValue any `msg:"origin_default"`
9091
Type byte `msg:"type"`
91-
// Version means the version of the column info.
92-
// Version = 0: For OriginDefaultValue and DefaultValue of timestamp column will stores the default time in system time zone.
93-
// That is a bug if multiple TiDB servers in different system time zone.
94-
// Version = 1: For OriginDefaultValue and DefaultValue of timestamp column will stores the default time in UTC time zone.
95-
// This will fix bug in version 0. For compatibility with version 0, we add version field in column info struct.
96-
Version uint64 `msg:"version"`
92+
Version uint64 `msg:"version"`
9793
}
9894

9995
// RedoColumn is for column meta

0 commit comments

Comments
 (0)