Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92fc0db

Browse files
Additional thoughts on WALSender cpu reduction. Use long type
and alter a comment to reduce confusion.
1 parente6867ee commit92fc0db

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/2420:11:12 sriggs Exp $
33+
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.12 2010/03/2421:41:57 sriggs Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -353,7 +353,7 @@ WalSndLoop(void)
353353
/* Loop forever */
354354
for (;;)
355355
{
356-
intremain;/* remaining time (ms) */
356+
longremain;/* 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)

[8]ページ先頭

©2009-2025 Movatter.jp