Skip to content

Commit

Permalink
fix: Fix sorting buffer in clustering compaction (#38417)
Browse files Browse the repository at this point in the history
issue: #28410

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
  • Loading branch information
xiaocai2333 authored Dec 13, 2024
1 parent e404123 commit 6ffc57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datanode/compaction/clustering_compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 6ffc57c

Please sign in to comment.