Skip to content

Commit

Permalink
Merge #27028
Browse files Browse the repository at this point in the history
27028: storageccl: fix reuse of cmd args slice r=dt a=dt

reusing the backing buffer after the slice was used as the start/end args
violates the expectation of the client that its args are not modified.

Fixes #26992.

Release note: none.

Co-authored-by: David Taylor <tinystatemachine@gmail.com>
  • Loading branch information
craig[bot] and dt committed Jun 27, 2018
2 parents 0320b0e + 7422b74 commit fd0ba94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ccl/storageccl/import.go
Expand Up @@ -204,8 +204,8 @@ func addSplitSSTable(
}

split = true
first = first[:0]
last = last[:0]
first = nil
last = nil
}

if len(first) == 0 {
Expand Down

0 comments on commit fd0ba94

Please sign in to comment.