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:Andrew Clayton <andrew@digital-domain.net>
parent
dce728c6
Please register or sign in to comment