From 9a7d6c82dc4605392d70bf0add32aac69668ac31 Mon Sep 17 00:00:00 2001 From: 3AceShowHand Date: Wed, 18 Dec 2024 15:53:53 +0800 Subject: [PATCH] use flag pointer, instead of copy --- cdc/model/schema_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdc/model/schema_storage.go b/cdc/model/schema_storage.go index b7ad2d5db42..5aade7cc880 100644 --- a/cdc/model/schema_storage.go +++ b/cdc/model/schema_storage.go @@ -151,7 +151,7 @@ func WrapTableInfo(schemaID int64, schemaName string, version uint64, info *mode ti.rowColInfos[i] = rowcodec.ColInfo{ ID: col.ID, IsPKHandle: pkIsHandle, - Ft: col.FieldType.Clone(), + Ft: &col.FieldType, VirtualGenCol: col.IsGenerated(), } ti.rowColFieldTps[col.ID] = ti.rowColInfos[i].Ft