Skip to content

Commit ec0b1f2

Browse files
committed
Paranoia: ensure MyBackendId is InvalidBackendId in a process that has
never executed SIBackendInit().
1 parent bf65d73 commit ec0b1f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/init/globals.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.89 2004/05/29 22:48:21 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.90 2004/05/30 17:58:12 tgl Exp $
1212
*
1313
* NOTES
1414
* Globals used all over the place should be declared here and not
@@ -53,7 +53,7 @@ char postgres_exec_path[MAXPGPATH]; /* full path to backend */
5353
/* note: currently this is not valid in backend processes */
5454
#endif
5555

56-
BackendId MyBackendId;
56+
BackendId MyBackendId = InvalidBackendId;
5757

5858
char *DatabasePath = NULL;
5959
Oid MyDatabaseId = InvalidOid;

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