Skip to content

Commit

Permalink
add missing lock statement
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann committed Jun 29, 2019
1 parent b9da367 commit e0135c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logstash-core/lib/logstash/pipelines_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def terminate_pipeline(pipeline_id, &stop_block)
def reload_pipeline(pipeline_id, &reload_block)
lock = get_lock(pipeline_id)
begin
lock.lock
success = false

state = @states.get(pipeline_id)
Expand Down

0 comments on commit e0135c4

Please sign in to comment.