forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44817d9
committed
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 parentd4e9bca commit44817d9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments
Comments
(0)