Skip to content

Commit

Permalink
[fix](exec) Add ++_get_waiting when USE_BTHREAD_SCANNER is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaka11chen committed Nov 15, 2023
1 parent ea4b6e9 commit 6c193f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/util/blocking_priority_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class BlockingPriorityQueue {
}
} else {
while (!(_shutdown || !_queue.empty())) {
++_get_waiting;
_get_cv.wait(unique_lock);
}
wait_successful = true;
Expand Down Expand Up @@ -238,4 +239,4 @@ class BlockingPriorityQueue {
size_t _put_waiting;
};

} // namespace doris
} // namespace doris

0 comments on commit 6c193f9

Please sign in to comment.