Skip to content

Commit

Permalink
Update pika_repl_bgworker.h
Browse files Browse the repository at this point in the history
  • Loading branch information
chejinge authored Aug 13, 2024
1 parent 0a3a49a commit 42a0ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pika_repl_bgworker.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class PikaReplBgWorker {
int StartThread();
int StopThread();
int TaskQueueSize() {
int pri_size, qu_size;
int pri_size = 0;
int qu_size = 0;
bg_thread_.QueueSize(&pri_size, &qu_size);
return pri_size + qu_size;
}
Expand Down

0 comments on commit 42a0ad0

Please sign in to comment.