Skip to content

Commit 36e012e

Browse files
committed
Remove temporary Windows-specific debugging code; it seems the problem
with fopen() not using FILE_SHARE_DELETE was indeed the bug we were after, given lack of recent reports.
1 parent 9c3f24b commit 36e012e

File tree

1 file changed

+1
-15
lines changed
  • src/backend/storage/file

1 file changed

+1
-15
lines changed

src/backend/storage/file/fd.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.130 2006/10/04 00:29:57 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.131 2006/11/06 17:10:22 tgl Exp $
1111
*
1212
* NOTES:
1313
*
@@ -1278,20 +1278,6 @@ AllocateFile(const char *name, const char *mode)
12781278
errno = save_errno;
12791279
}
12801280

1281-
/*
1282-
* TEMPORARY hack to log the Windows error code on fopen failures, in
1283-
* hopes of diagnosing some hard-to-reproduce problems.
1284-
*/
1285-
#ifdef WIN32
1286-
{
1287-
int save_errno = errno;
1288-
1289-
elog(LOG, "Windows fopen(\"%s\",\"%s\") failed: code %lu, errno %d",
1290-
name, mode, GetLastError(), save_errno);
1291-
errno = save_errno;
1292-
}
1293-
#endif
1294-
12951281
return NULL;
12961282
}
12971283

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