1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Better document win32_open and its ability to allow concurrent

unlink/rename().
This commit is contained in:
Bruce Momjian
2004-10-17 23:53:30 +00:00
parent 1311667b5c
commit edb1ba113d
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.29 2004/10/17 23:39:22 momjian Exp $
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.30 2004/10/17 23:53:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -68,7 +68,7 @@ pgrename(const char *from, const char *to)
{
int loops = 0;
/* Is this loop even necessary? */
/* Is this loop even necessary now that we have win32_open()? */
#if defined(WIN32) && !defined(__CYGWIN__)
while (!MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING))
#endif
@ -114,7 +114,7 @@ pgunlink(const char *path)
{
int loops = 0;
/* Is this loop even necessary? */
/* Is this loop even necessary now that we have win32_open()? */
while (unlink(path))
{
if (errno != EACCES)