From: Heikki Linnakangas Date: Tue, 14 Sep 2010 13:35:14 +0000 (+0000) Subject: Oops, the timeout argument to WaitLatchOrSocket is in microseconds, not X-Git-Tag: REL9_1_ALPHA2~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3522217b63ce9e88cd33a43e9481961a7c49ffb1;p=thirdparty%2Fpostgresql.git Oops, the timeout argument to WaitLatchOrSocket is in microseconds, not milliseconds. --- 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 */