Skip to content

Commit

Permalink
filter dropped table when restore (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: walter <[email protected]>
  • Loading branch information
lsy3993 and w41ter authored Jun 14, 2024
1 parent 5286e32 commit b0b9290
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/ccr/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,13 @@ func (j *Job) fullSync() error {
return err
}

// If srcTableName is empty, it may be deleted.
// No need to map it to dest table
if srcTableName == "" {
log.Warnf("the name of source table id: %d is empty, no need to map it to dest table", srcTableId)
continue
}

destTableId, err := j.destMeta.GetTableId(srcTableName)
if err != nil {
return err
Expand Down

0 comments on commit b0b9290

Please sign in to comment.