Skip to content

Commit

Permalink
fix(compactor): fix the calculation of pending_pull_task_count (#16885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k committed May 29, 2024
1 parent 242990b commit 82adba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/src/hummock/compactor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ pub fn start_compactor(
let mut pending_pull_task_count = 0;
if pull_task_ack {
// TODO: Compute parallelism on meta side
pending_pull_task_count = (max_task_parallelism - running_task_parallelism.load(Ordering::SeqCst)).max(max_pull_task_count);
pending_pull_task_count = (max_task_parallelism - running_task_parallelism.load(Ordering::SeqCst)).min(max_pull_task_count);

if pending_pull_task_count > 0 {
if let Err(e) = request_sender.send(SubscribeCompactionEventRequest {
Expand Down

0 comments on commit 82adba6

Please sign in to comment.