MINOR: Remove needless lock on acked batch read

* The underlying call has its own lock, so this extra mutex is not necessary

Fixes #8338
This commit is contained in:
Armin 2017-09-20 16:26:41 +02:00 committed by Armin Braun
parent e1f97e5d83
commit aca01544a4

View file

@ -167,12 +167,7 @@ module LogStash; module Util
end
batch = new_batch
@mutex.lock
begin
batch.read_next
ensure
@mutex.unlock
end
batch.read_next
start_metrics(batch)
batch
end