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
64360987
Commit
64360987
authored
Mar 10, 2011
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor sync rep corrections.
Fujii Masao, with a bit of additional wordsmithing by me.
parent
d16e290a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/backend/replication/syncrep.c
src/backend/replication/syncrep.c
+3
-3
src/backend/storage/ipc/shmqueue.c
src/backend/storage/ipc/shmqueue.c
+1
-1
src/include/replication/syncrep.h
src/include/replication/syncrep.h
+1
-2
No files found.
src/backend/replication/syncrep.c
View file @
64360987
...
...
@@ -447,9 +447,9 @@ SyncRepGetStandbyPriority(void)
}
/*
* Walk queue from head
setting setting the state of any backends that
*
need to be woken, remove them from the queue and then wake them.
*
Set all = true to wake whole queue, or just up to
LSN.
* Walk queue from head
. Set the state of any backends that need to be woken,
*
remove them from the queue, and then wake them. Pass all = true to wake
*
whole queue; otherwise, just wake up to the walsender's
LSN.
*
* Must hold SyncRepLock.
*/
...
...
src/backend/storage/ipc/shmqueue.c
View file @
64360987
...
...
@@ -157,7 +157,7 @@ SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, Size linkOffset)
/*--------------------
* SHMQueuePrev -- Get the previous element from a queue
*
* Same as SHMQueueNext, just starting at tail and moving towards head
* Same as SHMQueueNext, just starting at tail and moving towards head
.
* All other comments and usage applies.
*/
Pointer
...
...
src/include/replication/syncrep.h
View file @
64360987
...
...
@@ -29,7 +29,6 @@
/* user-settable parameters for synchronous replication */
extern
bool
sync_rep_mode
;
extern
int
sync_rep_timeout
;
extern
char
*
SyncRepStandbyNames
;
/* called by user backend */
...
...
@@ -44,6 +43,6 @@ extern void SyncRepReleaseWaiters(void);
/* called by various procs */
extern
int
SyncRepWakeQueue
(
bool
all
);
const
char
*
assign_synchronous_standby_names
(
const
char
*
newval
,
bool
doit
,
GucSource
source
);
extern
const
char
*
assign_synchronous_standby_names
(
const
char
*
newval
,
bool
doit
,
GucSource
source
);
#endif
/* _SYNCREP_H */
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