Skip to content

Commit 3522217

Browse files
committed
Oops, the timeout argument to WaitLatchOrSocket is in microseconds, not
milliseconds.
1 parent 06e8c8e commit 3522217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/walsender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group
2929
*
3030
* IDENTIFICATION
31-
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.30 2010/09/11 15:48:04 heikki Exp $
31+
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.31 2010/09/14 13:35:14 heikki Exp $
3232
*
3333
*-------------------------------------------------------------------------
3434
*/
@@ -452,7 +452,7 @@ WalSndLoop(void)
452452

453453
/* Sleep */
454454
WaitLatchOrSocket(&MyWalSnd->latch, MyProcPort->sock,
455-
WalSndDelay);
455+
WalSndDelay * 1000L);
456456
}
457457

458458
/* Check if the connection was closed */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy