Skip to content

Commit 9cdea75

Browse files
committed
Change Win32 rename/unlink timeout to 3 seconds.
1 parent cb8d423 commit 9cdea75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/port/dirmod.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pgrename(const char *from, const char *to)
2121
/* set errno? */
2222
return -1;
2323
Sleep(100); /* ms */
24-
if (loops == 10)
24+
if (loops == 30)
2525
#ifndef FRONTEND
2626
elog(LOG, "could not rename \"%s\" to \"%s\", continuing to try",
2727
from, to);
@@ -32,7 +32,7 @@ pgrename(const char *from, const char *to)
3232
loops++;
3333
}
3434

35-
if (loops > 10)
35+
if (loops > 30)
3636
#ifndef FRONTEND
3737
elog(LOG, "completed rename of \"%s\" to \"%s\"", from, to);
3838
#else
@@ -53,7 +53,7 @@ pgunlink(const char *path)
5353
/* set errno? */
5454
return -1;
5555
Sleep(100); /* ms */
56-
if (loops == 10)
56+
if (loops == 30)
5757
#ifndef FRONTEND
5858
elog(LOG, "could not unlink \"%s\", continuing to try",
5959
path);
@@ -64,7 +64,7 @@ pgunlink(const char *path)
6464
loops++;
6565
}
6666

67-
if (loops > 10)
67+
if (loops > 30)
6868
#ifndef FRONTEND
6969
elog(LOG, "completed unlink of \"%s\"", path);
7070
#else

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