Commit e280c63
committed
Fix mishandling of background worker PGPROCs in EXEC_BACKEND builds.
InitProcess() relies on IsBackgroundWorker to decide whether the PGPROC
for a new backend should be taken from ProcGlobal's freeProcs or from
bgworkerFreeProcs. In EXEC_BACKEND builds, InitProcess() is called
sooner than in non-EXEC_BACKEND builds, and IsBackgroundWorker wasn't
getting initialized soon enough.
Report by Noah Misch. Diagnosis and fix by me.1 parent 232f147 commit e280c63
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4668 | 4668 | | |
4669 | 4669 | | |
4670 | 4670 | | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
4671 | 4674 | | |
4672 | 4675 | | |
4673 | 4676 | | |
| |||
0 commit comments