From d2fbcb780ac6b1f577bfd9661a8088cf9e6ffb87 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 30 Jan 2023 10:15:54 +0800 Subject: [PATCH] br: fix checkpoint panic when BR executes gain (#40706) (#40824) close pingcap/tidb#40704 --- br/pkg/backup/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/pkg/backup/schema.go b/br/pkg/backup/schema.go index bb0cf7f884189..63847d01549c6 100644 --- a/br/pkg/backup/schema.go +++ b/br/pkg/backup/schema.go @@ -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 {