Skip to content

Commit 4071e0c

Browse files
committed
Fix missed usage of DLNewElem()
1 parent a1e1ef4 commit 4071e0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.579 2009/05/04 02:24:17 alvherre Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.580 2009/05/04 02:46:36 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -143,7 +143,7 @@ typedef struct bkend
143143
long cancel_key; /* cancel key for cancels for this backend */
144144
bool is_autovacuum; /* is it an autovacuum process? */
145145
bool dead_end; /* is it going to send an error and quit? */
146-
Dlelem elem; /* self pointer into BackendList */
146+
Dlelem elem; /* list link in BackendList */
147147
} Backend;
148148

149149
static Dllist *BackendList;
@@ -4288,7 +4288,8 @@ StartAutovacuumWorker(void)
42884288
bn->cancel_key = MyCancelKey;
42894289
bn->is_autovacuum = true;
42904290
bn->dead_end = false;
4291-
DLAddHead(BackendList, DLNewElem(bn));
4291+
DLInitElem(&bn->elem, bn);
4292+
DLAddHead(BackendList, &bn->elem);
42924293
#ifdef EXEC_BACKEND
42934294
ShmemBackendArrayAdd(bn);
42944295
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy