mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 00:03:09 -04:00
Add lock file contents printout to "can't happen" case to help
investigate buildfarm failures.
This commit is contained in:
parent
9de97c5531
commit
d38d06374d
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.141 2005/06/07 16:54:18 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.142 2005/06/20 02:17:30 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -549,7 +549,8 @@ CreateLockFile(const char *filename, bool amPostmaster,
|
|||||||
other_pid = (pid_t) (encoded_pid < 0 ? -encoded_pid : encoded_pid);
|
other_pid = (pid_t) (encoded_pid < 0 ? -encoded_pid : encoded_pid);
|
||||||
|
|
||||||
if (other_pid <= 0)
|
if (other_pid <= 0)
|
||||||
elog(FATAL, "bogus data in lock file \"%s\"", filename);
|
elog(FATAL, "bogus data in lock file \"%s\": \"%s\"",
|
||||||
|
filename, buffer);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check to see if the other process still exists
|
* Check to see if the other process still exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user