mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
Small correction to previous patch: we shouldn't ReleasePostmasterChildSlot
for a dead_end child, because we didn't AssignPostmasterChildSlot.
This commit is contained in:
parent
6887067b6d
commit
1651dfc064
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.583.2.4 2009/08/24 17:23:17 alvherre Exp $
|
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.583.2.5 2009/08/24 18:09:54 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -3024,7 +3024,8 @@ BackendStartup(Port *port)
|
|||||||
/* in parent, fork failed */
|
/* in parent, fork failed */
|
||||||
int save_errno = errno;
|
int save_errno = errno;
|
||||||
|
|
||||||
(void) ReleasePostmasterChildSlot(bn->child_slot);
|
if (!bn->dead_end)
|
||||||
|
(void) ReleasePostmasterChildSlot(bn->child_slot);
|
||||||
free(bn);
|
free(bn);
|
||||||
errno = save_errno;
|
errno = save_errno;
|
||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user