Skip to content

Commit d38d063

Browse files
committed
Add lock file contents printout to "can't happen" case to help
investigate buildfarm failures.
1 parent 9de97c5 commit d38d063

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/utils/init/miscinit.c

Lines changed: 3 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/miscinit.c,v 1.141 2005/06/07 16:54:18 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.142 2005/06/20 02:17:30 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -549,7 +549,8 @@ CreateLockFile(const char *filename, bool amPostmaster,
549549
other_pid = (pid_t) (encoded_pid < 0 ? -encoded_pid : encoded_pid);
550550

551551
if (other_pid <= 0)
552-
elog(FATAL, "bogus data in lock file \"%s\"", filename);
552+
elog(FATAL, "bogus data in lock file \"%s\": \"%s\"",
553+
filename, buffer);
553554

554555
/*
555556
* Check to see if the other process still exists

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