mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
e1f97e5d83
commit
aca01544a4
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue