yandex / odyssey

Scalable PostgreSQL connection pooler
BSD 3-Clause "New" or "Revised" License
3.21k stars 165 forks source link

sources/hashmap.c: fix lock #706

Closed rkhapov closed 3 weeks ago

rkhapov commented 3 weeks ago

pthread_mutex_trylock returns non-zero, when mutex is not locked, so current usage will sleep when mutex is locked succesfully