Skip to content

Commit 92fc0db

Browse files
Additional thoughts on WALSender cpu reduction. Use long type
and alter a comment to reduce confusion.
1 parent e6867ee commit 92fc0db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/replication/walsender.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
*
3232
* IDENTIFICATION
33-
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.11 2010/03/24 20:11:12 sriggs Exp $
33+
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.12 2010/03/24 21:41:57 sriggs Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -353,7 +353,7 @@ WalSndLoop(void)
353353
/* Loop forever */
354354
for (;;)
355355
{
356-
int remain; /* remaining time (ms) */
356+
long remain; /* remaining time (us) */
357357

358358
/*
359359
* Emergency bailout if postmaster has died. This is to avoid the
@@ -393,7 +393,7 @@ WalSndLoop(void)
393393
*
394394
* On some platforms, signals won't interrupt the sleep. To ensure we
395395
* respond reasonably promptly when someone signals us, break down the
396-
* sleep into NAPTIME_PER_CYCLE (ms) increments, and check for
396+
* sleep into NAPTIME_PER_CYCLE increments, and check for
397397
* interrupts after each nap.
398398
*/
399399
remain = WalSndDelay * 1000L;

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