Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
92fc0db9
Commit
92fc0db9
authored
Mar 24, 2010
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional thoughts on WALSender cpu reduction. Use long type
and alter a comment to reduce confusion.
parent
e6867eeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/backend/replication/walsender.c
src/backend/replication/walsender.c
+3
-3
No files found.
src/backend/replication/walsender.c
View file @
92fc0db9
...
...
@@ -30,7 +30,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.1
1 2010/03/24 20:11:12
sriggs Exp $
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.1
2 2010/03/24 21:41:57
sriggs Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -353,7 +353,7 @@ WalSndLoop(void)
/* Loop forever */
for
(;;)
{
int
remain
;
/* remaining time (m
s) */
long
remain
;
/* remaining time (u
s) */
/*
* Emergency bailout if postmaster has died. This is to avoid the
...
...
@@ -393,7 +393,7 @@ WalSndLoop(void)
*
* On some platforms, signals won't interrupt the sleep. To ensure we
* respond reasonably promptly when someone signals us, break down the
* sleep into NAPTIME_PER_CYCLE
(ms)
increments, and check for
* sleep into NAPTIME_PER_CYCLE increments, and check for
* interrupts after each nap.
*/
remain
=
WalSndDelay
*
1000L
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment