mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
fix: Query may return deleted records (#34502)
issue: #34500 pr: #34501 cause the sort in `GetLevel0Deletions` will broken the corresponed order between pks and tss, then the pks and tss will be sorted in segment.Delete() interface. This PR remove this uncessary and incorrect sort progress to avoid query may return deleted records. Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
f6cd84161c
commit
7034260721
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user