8000 Change Win32 rename/unlink timeout to 3 seconds. · jandas/postgres@9cdea75 · GitHub
[go: up one dir, main page]

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)
0