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:
@ -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)
|
||||
|
Reference in New Issue
Block a user