Commit dc9e04b1 authored by Andrew Clayton's avatar Andrew Clayton Committed by Jason Carey (hanumantmk)
Browse files

client pool: Add some missing locking in _push()

Commit a8c1da45

 ("Client pool tries to repair unhealthy connections...")
introduced more code to mongoc_client_pool_push() operating on the
connection pool. However locking was missing on the first if () section
which deals with various aspects of the connection pool and requires
locking.

Protect the if () with a mongoc_mutex_lock/unlock using pool->mutex.

Signed-off-by: default avatarAndrew Clayton <andrew@digital-domain.net>
parent dce728c6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment