Performance: Use Jitted Lock call

Fixes #7300
This commit is contained in:
Armin 2017-06-03 19:15:33 +02:00 committed by Armin Braun
parent 842658f3a6
commit b5c24ae438

View file

@ -57,7 +57,7 @@ module LogStash; module Util
def initialize(queue, batch_size = 125, wait_for = 250)
@queue = queue
@mutex = java.util.concurrent.locks.ReentrantLock.new
@mutex = Mutex.new
# Note that @inflight_batches as a central mechanism for tracking inflight
# batches will fail if we have multiple read clients in the pipeline.
@inflight_batches = {}