aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-09-14 13:35:14 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-09-14 13:35:14 +0000
commit3522217b63ce9e88cd33a43e9481961a7c49ffb1 (patch)
tree41592aa00a16ab1fa71b9636b52af0bf29620c9e
parent06e8c8e3ec14e597e5f47c7b5b6b0c0b17bedcf0 (diff)
downloadpostgresql-3522217b63ce9e88cd33a43e9481961a7c49ffb1.tar.gz
postgresql-3522217b63ce9e88cd33a43e9481961a7c49ffb1.zip
Oops, the timeout argument to WaitLatchOrSocket is in microseconds, not
milliseconds.
-rw-r--r--src/backend/replication/walsender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 2ef90497bb6..c477e7c9872 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -28,7 +28,7 @@
* Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.30 2010/09/11 15:48:04 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.31 2010/09/14 13:35:14 heikki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -452,7 +452,7 @@ WalSndLoop(void)
/* Sleep */
WaitLatchOrSocket(&MyWalSnd->latch, MyProcPort->sock,
- WalSndDelay);
+ WalSndDelay * 1000L);
}
/* Check if the connection was closed */