Skip to content

Commit

Permalink
Merge #109991
Browse files Browse the repository at this point in the history
109991: backupccl: log descriptor ID in error r=adityamaru a=stevendanna

This code was previously logging the descriptor version as if it was the descriptor ID.

Epic: none

Release note: None

Co-authored-by: Steven Danna <[email protected]>
  • Loading branch information
craig[bot] and stevendanna committed Sep 4, 2023
2 parents b994d02 + 45fbc0c commit 8ee0bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/restore_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ func (r *restoreResumer) dropDescriptors(
if !details.DescriptorsPublished {
if got, exp := mutableTables[i].Version, details.TableDescs[i].Version; got != exp {
log.Errorf(ctx, "version changed for restored descriptor %d before "+
"drop: got %d, expected %d", mutableTables[i].GetVersion(), got, exp)
"drop: got %d, expected %d", mutableTables[i].GetID(), got, exp)
}
}

Expand Down

0 comments on commit 8ee0bc7

Please sign in to comment.