forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit914d46b
Use correct connection for cancellation in frontend's parallel slots
While waiting for slots to become available in wait_on_slots() inparallel_slot.c, the cancellation always relied on the first connectionin the set to do the job. This could cause problems when this slot'ssocket is gone as PQgetCancel() would return NULL in this case. Ratherthan always using the first connection, this changes the logic to usethe first valid connection for the cancellation.Author: Ranier VilelaReviewed-by: Justin PryzbyDiscussion:https://postgr.es/m/CAEudQAokk1h_pUwGXsYS4oVOuf35s1O2o3TXGHpV8=AWikvgHA@mail.gmail.comBackpatch-through: 141 parentbd0d22d commit914d46b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments
Comments
(0)