Content-Length: 290213 | pFad | http://github.com/postgrespro/postgres/commit/92fc0db99fb7a77864558615b76f4ab84227df30

99 Additional thoughts on WALSender cpu reduction. Use long type · postgrespro/postgres@92fc0db · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/92fc0db99fb7a77864558615b76f4ab84227df30

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy