Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d7c971a

Browse files
committed
Change Win32 rename/unlink timeout to 3 seconds.
1 parent 870d964 commit d7c971a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/port/dirmod.c

+4-4
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)