mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Fix sorting buffer in clustering compaction (#38417)
issue: #28410 Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
e404123e3e
commit
6ffc57c8dc
@ -857,7 +857,7 @@ func (t *clusteringCompactionTask) flushLargestBuffers(ctx context.Context) erro
|
||||
t.clusterBufferLocks.RUnlock(buffer.id)
|
||||
}
|
||||
sort.Slice(bufferIDs, func(i, j int) bool {
|
||||
return bufferRowNums[i] > bufferRowNums[j]
|
||||
return bufferRowNums[bufferIDs[i]] > bufferRowNums[bufferIDs[j]]
|
||||
})
|
||||
log.Info("start flushLargestBuffers", zap.Ints("bufferIDs", bufferIDs), zap.Int64("currentMemorySize", currentMemorySize))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user