summaryrefslogtreecommitdiff
path: root/src/backend/access/common/indextuple.c
diff options
context:
space:
mode:
authorJacob Champion <jchampion@postgresql.org>2025-08-08 08:44:46 -0700
committerJacob Champion <jchampion@postgresql.org>2025-08-08 08:44:46 -0700
commit3d9c03429a82c199a77563ae5d57c4c9cefa3d41 (patch)
treecdad375c8d9947a29823bcd364cb0201f3fa5726 /src/backend/access/common/indextuple.c
parentff5b0824b3b0c58bbb322719628c42b7a4751dd9 (diff)
oauth: Ensure unused socket registrations are removed
If Curl needs to switch the direction of a socket's registration (e.g. from CURL_POLL_IN to CURL_POLL_OUT), it expects the old registration to be discarded. For epoll, this happened via EPOLL_CTL_MOD, but for kqueue, the old registration would remain if it was not explicitly removed by Curl. Explicitly remove the opposite-direction event during registrations. (If that event doesn't exist, we'll just get an ENOENT, which will be ignored by the same code that handles CURL_POLL_REMOVE.) A few assertions are also added to strengthen the relationship between the number of events added, the number of events pulled off the queue, and the lengths of the kevent arrays. Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Backpatch-through: 18 Discussion: https://postgr.es/m/CAOYmi+nDZxJHaWj9_jRSyf8uMToCADAmOfJEggsKW-kY7aUwHA@mail.gmail.com
Diffstat (limited to 'src/backend/access/common/indextuple.c')
0 files changed, 0 insertions, 0 deletions