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
73f617f1
Commit
73f617f1
authored
Jan 30, 2012
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various minor comments changes from bgwriter to checkpointer.
parent
a5782570
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/backend/postmaster/checkpointer.c
src/backend/postmaster/checkpointer.c
+9
-9
src/backend/replication/syncrep.c
src/backend/replication/syncrep.c
+1
-1
src/include/replication/walsender_private.h
src/include/replication/walsender_private.h
+1
-1
No files found.
src/backend/postmaster/checkpointer.c
View file @
73f617f1
...
...
@@ -92,7 +92,7 @@
*
* num_backend_writes is used to count the number of buffer writes performed
* by user backend processes. This counter should be wide enough that it
* can't overflow during a single processing
bgwriter
cycle. num_backend_fsync
* can't overflow during a single processing cycle. num_backend_fsync
* counts the subset of those writes that also had to do their own fsync,
* because the background writer failed to absorb their request.
*
...
...
@@ -892,7 +892,7 @@ BgWriterShmemInit(void)
* since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
* CHECKPOINT_END_OF_RECOVERY).
* CHECKPOINT_WAIT: wait for completion before returning (otherwise,
* just signal
bgwri
ter to do it, and return).
* just signal
checkpoin
ter to do it, and return).
* CHECKPOINT_CAUSE_XLOG: checkpoint is requested due to xlog filling.
* (This affects logging, and in particular enables CheckPointWarning.)
*/
...
...
@@ -928,7 +928,7 @@ RequestCheckpoint(int flags)
/*
* Atomically set the request flags, and take a snapshot of the counters.
* When we see ckpt_started > old_started, we know the flags we set here
* have been seen by
bgwri
ter.
* have been seen by
checkpoin
ter.
*
* Note that we OR the flags with any existing flags, to avoid overriding
* a "stronger" request by another backend. The flag senses must be
...
...
@@ -943,7 +943,7 @@ RequestCheckpoint(int flags)
SpinLockRelease
(
&
bgs
->
ckpt_lck
);
/*
* Send signal to request checkpoint. It's possible that the
bgwri
ter
* Send signal to request checkpoint. It's possible that the
checkpoin
ter
* hasn't started yet, or is in process of restarting, so we will retry a
* few times if needed. Also, if not told to wait for the checkpoint to
* occur, we consider failure to send the signal to be nonfatal and merely
...
...
@@ -1027,10 +1027,10 @@ RequestCheckpoint(int flags)
/*
* ForwardFsyncRequest
* Forward a file-fsync request from a backend to the
bgwri
ter
* Forward a file-fsync request from a backend to the
checkpoin
ter
*
* Whenever a backend is compelled to write directly to a relation
* (which should be seldom, if the
bgwri
ter is getting its job done),
* (which should be seldom, if the
checkpoin
ter is getting its job done),
* the backend calls this routine to pass over knowledge that the relation
* is dirty and must be fsync'd before next checkpoint. We also use this
* opportunity to count such writes for statistical purposes.
...
...
@@ -1041,7 +1041,7 @@ RequestCheckpoint(int flags)
* see for details.)
*
* To avoid holding the lock for longer than necessary, we normally write
* to the requests[] queue without checking for duplicates. The
bgwri
ter
* to the requests[] queue without checking for duplicates. The
checkpoin
ter
* will have to eliminate dups internally anyway. However, if we discover
* that the queue is full, we make a pass over the entire queue to compact
* it. This is somewhat expensive, but the alternative is for the backend
...
...
@@ -1060,7 +1060,7 @@ ForwardFsyncRequest(RelFileNodeBackend rnode, ForkNumber forknum,
return
false
;
/* probably shouldn't even get here */
if
(
am_checkpointer
)
elog
(
ERROR
,
"ForwardFsyncRequest must not be called in
bgwri
ter"
);
elog
(
ERROR
,
"ForwardFsyncRequest must not be called in
checkpoin
ter"
);
LWLockAcquire
(
BgWriterCommLock
,
LW_EXCLUSIVE
);
...
...
@@ -1132,7 +1132,7 @@ CompactCheckpointerRequestQueue()
ctl
.
keysize
=
sizeof
(
BgWriterRequest
);
ctl
.
entrysize
=
sizeof
(
struct
BgWriterSlotMapping
);
ctl
.
hash
=
tag_hash
;
htab
=
hash_create
(
"Compact
Bgwri
terRequestQueue"
,
htab
=
hash_create
(
"Compact
Checkpoin
terRequestQueue"
,
BgWriterShmem
->
num_requests
,
&
ctl
,
HASH_ELEM
|
HASH_FUNCTION
);
...
...
src/backend/replication/syncrep.c
View file @
73f617f1
...
...
@@ -581,7 +581,7 @@ SyncRepWakeQueue(bool all, int mode)
}
/*
* The
background wri
ter calls this as needed to update the shared
* The
checkpoin
ter calls this as needed to update the shared
* sync_standbys_defined flag, so that backends don't remain permanently wedged
* if synchronous_standby_names is unset. It's safe to check the current value
* without the lock, because it's only ever updated by one process. But we
...
...
src/include/replication/walsender_private.h
View file @
73f617f1
...
...
@@ -82,7 +82,7 @@ typedef struct
/*
* Are any sync standbys defined? Waiting backends can't reload the
* config file safely, so
WAL wri
ter updates this value as needed.
* config file safely, so
checkpoin
ter updates this value as needed.
* Protected by SyncRepLock.
*/
bool
sync_standbys_defined
;
...
...
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