Skip to content

Commit

Permalink
br: fix checkpoint panic when BR executes gain (#40706)
Browse files Browse the repository at this point in the history
close #40704
  • Loading branch information
Leavrth authored Jan 29, 2023
1 parent f842cd9 commit 0bcb859
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 0bcb859

Please sign in to comment.