diff --git a/internal/querynodev2/delegator/delegator_data.go b/internal/querynodev2/delegator/delegator_data.go index b47f2c251e..f2f10884e0 100644 --- a/internal/querynodev2/delegator/delegator_data.go +++ b/internal/querynodev2/delegator/delegator_data.go @@ -21,7 +21,6 @@ import ( "fmt" "math/rand" "runtime" - "sort" "time" "github.com/cockroachdb/errors" @@ -591,10 +590,6 @@ func (sd *shardDelegator) GetLevel0Deletions(partitionID int64, candidate pkorac } } - sort.Slice(pks, func(i, j int) bool { - return tss[i] < tss[j] - }) - return pks, tss }