Skip to content

Commit

Permalink
br: fix checkpoint panic when BR executes gain (#40706) (#40824)
Browse files Browse the repository at this point in the history
close #40704
  • Loading branch information
ti-chi-bot committed Jan 30, 2023
1 parent 0170ac3 commit d2fbcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/backup/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (ss *Schemas) BackupSchemas(

var checksum *checkpoint.ChecksumItem
var exists bool = false
if ss.checkpointChecksum != nil {
if ss.checkpointChecksum != nil && schema.tableInfo != nil {
checksum, exists = ss.checkpointChecksum[schema.tableInfo.ID]
}
workerPool.ApplyOnErrorGroup(errg, func() error {
Expand Down

0 comments on commit d2fbcb7

Please sign in to comment.