Skip to content

Commit

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

master pr: #38417

Signed-off-by: Cai Zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Dec 13, 2024
1 parent 24c8883 commit 85ade98
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 @@ -806,7 +806,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 85ade98

Please sign in to comment.