diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-05-04 02:46:36 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-05-04 02:46:36 +0000 |
commit | 4071e0c2421e803ebae716ac98af809a54fcbdcb (patch) | |
tree | 7920fbae6eca233ae3fe386d8bea5c82876b4e06 /src | |
parent | a1e1ef4f77649a994ce8f5e3c696f319b6b45742 (diff) | |
download | postgresql-4071e0c2421e803ebae716ac98af809a54fcbdcb.tar.gz postgresql-4071e0c2421e803ebae716ac98af809a54fcbdcb.zip |
Fix missed usage of DLNewElem()
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 7cf6293bdce..7a20fadcd8a 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.579 2009/05/04 02:24:17 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.580 2009/05/04 02:46:36 tgl Exp $ * * NOTES * @@ -143,7 +143,7 @@ typedef struct bkend long cancel_key; /* cancel key for cancels for this backend */ bool is_autovacuum; /* is it an autovacuum process? */ bool dead_end; /* is it going to send an error and quit? */ - Dlelem elem; /* self pointer into BackendList */ + Dlelem elem; /* list link in BackendList */ } Backend; static Dllist *BackendList; @@ -4288,7 +4288,8 @@ StartAutovacuumWorker(void) bn->cancel_key = MyCancelKey; bn->is_autovacuum = true; bn->dead_end = false; - DLAddHead(BackendList, DLNewElem(bn)); + DLInitElem(&bn->elem, bn); + DLAddHead(BackendList, &bn->elem); #ifdef EXEC_BACKEND ShmemBackendArrayAdd(bn); #endif |