Skip to content

Commit

Permalink
Merge #86474
Browse files Browse the repository at this point in the history
86474: sql: remove unused map r=yuzefovich a=yuzefovich

This commit removes a map that is unused as of
e800d74.

Release justification: low-risk cleanup.

Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
  • Loading branch information
craig[bot] and yuzefovich committed Aug 24, 2022
2 parents 0f3bf61 + ffb450a commit bdadde2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/sql/revert.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ func RevertTables(
ignoreGCThreshold bool,
batchSize int64,
) error {
reverting := make(map[descpb.ID]bool, len(tables))
for i := range tables {
reverting[tables[i].GetID()] = true
}

spans := make([]roachpb.Span, 0, len(tables))

// Check that all the tables are revertable -- i.e. offline.
Expand Down

0 comments on commit bdadde2

Please sign in to comment.