Skip to content

Commit

Permalink
Merge 74d9466 into 8103875
Browse files Browse the repository at this point in the history
  • Loading branch information
albsch committed Aug 6, 2020
2 parents 8103875 + 74d9466 commit d9b8c5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/riak_core_vnode_worker_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,11 @@ worker_started(#state{pool = Pool,
State#state{queue = Rem, monitors = NewMonitors}}
end;
{empty, _} ->
%% StateName might be either 'ready' or 'shutdown'
{next_state, StateName, State}
{next_state,
%% If we are in state queueing with nothing in the queue,
%% move to the ready state so that the next incoming job
%% checks out the new worker from poolboy.
if StateName==queue -> ready; true -> StateName end, State}
end.

checkin(#state{pool = Pool, monitors = Monitors} =
Expand Down

0 comments on commit d9b8c5f

Please sign in to comment.