Skip to content

Commit

Permalink
Merge pull request #66638 from dt/backport20.2-65851
Browse files Browse the repository at this point in the history
release-20.2: backupccl: avoid panic if not collecting prior IDs
  • Loading branch information
dt authored Jun 18, 2021
2 parents 5395395 + 61e0bed commit 402d4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ func getAllDescChanges(
// changed during truncate.
r.Desc = &desc
t := descpb.TableFromDescriptor(&desc, rev.Timestamp)
if t != nil && t.ReplacementOf.ID != descpb.InvalidID {
if priorIDs != nil && t != nil && t.ReplacementOf.ID != descpb.InvalidID {
priorIDs[t.ID] = t.ReplacementOf.ID
}
}
Expand Down

0 comments on commit 402d4f6

Please sign in to comment.