diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-12-15 22:13:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-12-15 22:13:02 +0000 |
commit | 1b92aeb93ea1c2c6a86b883fa17989770e50e1e1 (patch) | |
tree | 29716a7992129dfcefe97561b7b09d7925980aeb | |
parent | 30c6202a2a3f2319c14d0fed58a42d7a497df7ba (diff) | |
download | postgresql-1b92aeb93ea1c2c6a86b883fa17989770e50e1e1.tar.gz postgresql-1b92aeb93ea1c2c6a86b883fa17989770e50e1e1.zip |
Improve comment about why sleep is used by pg_standby to handle 'copy'
file size problem.
-rw-r--r-- | contrib/pg_standby/pg_standby.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index 4582f54585c..5fd1d842c4b 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.15 2008/12/15 21:39:25 momjian Exp $ + * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.16 2008/12/15 22:13:02 momjian Exp $ * * * pg_standby.c @@ -179,12 +179,11 @@ CustomizableNextWALFileReady() #ifdef WIN32 /* - * Windows reports that the file has the right number of bytes - * even though the file is still being copied and cannot be opened - * by pg_standby yet. So we wait for sleeptime secs before - * attempting to restore. If that is not enough, we will rely on - * the retry/holdoff mechanism. GNUWin32's cp does not have - * this problem. + * Windows 'cp' sets the final file size before the copy is + * complete, and not yet ready to be opened by pg_standby. + * So we wait for sleeptime secs before attempting to restore. + * If that is not enough, we will rely on the retry/holdoff + * mechanism. GNUWin32's cp does not have this problem. */ pg_usleep(sleeptime * 1000000L); #endif |