|
1 | 1 | /* |
2 | | - * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.15 2008/12/1521:39:25 momjian Exp $ |
| 2 | + * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.16 2008/12/1522:13:02 momjian Exp $ |
3 | 3 | * |
4 | 4 | * |
5 | 5 | * pg_standby.c |
@@ -179,12 +179,11 @@ CustomizableNextWALFileReady() |
179 | 179 | #ifdefWIN32 |
180 | 180 |
|
181 | 181 | /* |
182 | | - * Windows reports that the file has the right number of bytes |
183 | | - * even though the file is still being copied and cannot be opened |
184 | | - * by pg_standby yet. So we wait for sleeptime secs before |
185 | | - * attempting to restore. If that is not enough, we will rely on |
186 | | - * the retry/holdoff mechanism. GNUWin32's cp does not have |
187 | | - * this problem. |
| 182 | + * Windows 'cp' sets the final file size before the copy is |
| 183 | + * complete, and not yet ready to be opened by pg_standby. |
| 184 | + * So we wait for sleeptime secs before attempting to restore. |
| 185 | + * If that is not enough, we will rely on the retry/holdoff |
| 186 | + * mechanism. GNUWin32's cp does not have this problem. |
188 | 187 | */ |
189 | 188 | pg_usleep(sleeptime*1000000L); |
190 | 189 | #endif |
|