yandex / odyssey

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

machinarium/sources/epoll.c: fix mask update #641

Closed rkhapov closed 4 months ago

rkhapov commented 4 months ago

In mm_epoll_read_write, if arg enabled is 0, the mask of the fd is not updated in correctly for masks with MM_R set.

It seems like there should be parentheses.