From ae02121500862325a61a90db9820975cd83edfd3 Mon Sep 17 00:00:00 2001 From: Leavrth Date: Wed, 18 Jan 2023 17:30:59 +0800 Subject: [PATCH] fix checkpoint panic Signed-off-by: Leavrth --- 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 {