Skip to content

Commit

Permalink
*: fix dml not replicate when add partition about partition table wit…
Browse files Browse the repository at this point in the history
…hout valid index (#2841) (#2866)
  • Loading branch information
ti-chi-bot authored Sep 23, 2021
1 parent f06bbdc commit 07576ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/entry/schema_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (s *schemaSnapshot) updatePartition(tbl *model.TableInfo) error {
log.Debug("add table partition success", zap.String("name", tbl.Name.O), zap.Int64("tid", id), zap.Reflect("add partition id", partition.ID))
}
s.partitionTable[partition.ID] = tbl
if !tbl.ExistTableUniqueColumn() {
if !tbl.IsEligible(s.explicitTables) {
s.ineligibleTableID[partition.ID] = struct{}{}
}
delete(oldIDs, partition.ID)
Expand Down

0 comments on commit 07576ec

Please sign in to comment.