Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)