forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaeebacf
committed
Fix mishandling of background worker PGPROCs in EXEC_BACKEND builds.
InitProcess() relies on IsBackgroundWorker to decide whether the PGPROCfor a new backend should be taken from ProcGlobal's freeProcs or frombgworkerFreeProcs. In EXEC_BACKEND builds, InitProcess() is calledsooner than in non-EXEC_BACKEND builds, and IsBackgroundWorker wasn'tgetting initialized soon enough.Report by Noah Misch. Diagnosis and fix by me.1 parent98c5fe5 commitaeebacf
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4672 | 4672 |
| |
4673 | 4673 |
| |
4674 | 4674 |
| |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
4675 | 4678 |
| |
4676 | 4679 |
| |
4677 | 4680 |
| |
|
0 commit comments
Comments
(0)