Skip to content

Commit 50c308c

Browse files
author
Renato Costa
committed
backupccl: fix error message for descriptor version mismatch
Expected and actual versions were swapped. Epic: none Release note: None
1 parent 7fe93d7 commit 50c308c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ccl/backupccl/restore_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ func prefetchDescriptors(
23752375
if got[i].GetVersion() != expVersion[id] {
23762376
return nstree.Catalog{}, errors.Errorf(
23772377
"version mismatch for descriptor %d, expected version %d, got %v",
2378-
got[i].GetID(), got[i].GetVersion(), expVersion[id],
2378+
got[i].GetID(), expVersion[id], got[i].GetVersion(),
23792379
)
23802380
}
23812381
all.UpsertDescriptor(got[i])

0 commit comments

Comments
 (0)