Paranoia: ensure MyBackendId is InvalidBackendId in a process that has

never executed SIBackendInit().
This commit is contained in:
Tom Lane 2004-05-30 17:58:12 +00:00
parent bf65d730de
commit ec0b1f2716
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.89 2004/05/29 22:48:21 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.90 2004/05/30 17:58:12 tgl Exp $
*
* NOTES
* 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 */
/* note: currently this is not valid in backend processes */
#endif
BackendId MyBackendId;
BackendId MyBackendId = InvalidBackendId;
char *DatabasePath = NULL;
Oid MyDatabaseId = InvalidOid;