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
cd2b7d3c
Commit
cd2b7d3c
authored
Feb 25, 2010
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix streaming replication starting at the very first WAL segment.
Per complaint from Greg Stark.
parent
aed0829c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
+1
-3
src/backend/replication/walsender.c
src/backend/replication/walsender.c
+1
-10
No files found.
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
View file @
cd2b7d3c
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.
3 2010/02/03 09:47:19
heikki Exp $
* $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.
4 2010/02/25 07:31:40
heikki Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -84,8 +84,6 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
PGresult
*
res
;
char
cmd
[
64
];
Assert
(
startpoint
.
xlogid
!=
0
||
startpoint
.
xrecoff
!=
0
);
/* Connect */
snprintf
(
conninfo_repl
,
sizeof
(
conninfo_repl
),
"%s replication=true"
,
conninfo
);
...
...
src/backend/replication/walsender.c
View file @
cd2b7d3c
...
...
@@ -30,7 +30,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.
7 2010/02/18 11:13:46
heikki Exp $
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.
8 2010/02/25 07:31:40
heikki Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -573,15 +573,6 @@ XLogSend(StringInfo outMsg)
/* use volatile pointer to prevent code rearrangement */
volatile
WalSnd
*
walsnd
=
MyWalSnd
;
/*
* Invalid position means that we have not yet received the initial
* CopyData message from the slave that indicates where to start the
* streaming.
*/
if
(
sentPtr
.
xlogid
==
0
&&
sentPtr
.
xrecoff
==
0
)
return
true
;
/* Attempt to send all records flushed to the disk already */
SendRqstPtr
=
GetWriteRecPtr
();
...
...
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