From 7422b746f4e194d61546d67db585297ebfcbd7d6 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 27 Jun 2018 18:14:32 +0000 Subject: [PATCH] storageccl: fix reuse of cmd args slice 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. --- pkg/ccl/storageccl/import.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ccl/storageccl/import.go b/pkg/ccl/storageccl/import.go index bba3a7fede75..b1ab03e2267d 100644 --- a/pkg/ccl/storageccl/import.go +++ b/pkg/ccl/storageccl/import.go @@ -204,8 +204,8 @@ func addSplitSSTable( } split = true - first = first[:0] - last = last[:0] + first = nil + last = nil } if len(first) == 0 {