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
ec786c6c
Commit
ec786c6c
authored
Jun 27, 2012
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I neglected many comments in the log+seg -> 64-bit segno patch. Fix.
Reported by Amit Kapila.
parent
7700b82e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+6
-6
src/backend/replication/walreceiver.c
src/backend/replication/walreceiver.c
+1
-1
No files found.
src/backend/access/transam/xlog.c
View file @
ec786c6c
...
...
@@ -2479,7 +2479,7 @@ XLogFileInit(XLogSegNo logsegno, bool *use_existent, bool use_lock)
/*
* Create a new XLOG file segment by copying a pre-existing one.
*
*
log, seg
: identify segment to be created.
*
destsegno
: identify segment to be created.
*
* srcTLI, srclog, srcseg: identify segment to be copied (could be from
* a different timeline)
...
...
@@ -2582,8 +2582,8 @@ XLogFileCopy(XLogSegNo destsegno, TimeLineID srcTLI, XLogSegNo srcsegno)
* This is used both to install a newly-created segment (which has a temp
* filename while it's being created) and to recycle an old segment.
*
* *
log, *seg
: identify segment to install as (or first possible target).
* When find_free is TRUE, th
ese are
modified on return to indicate the
* *
segno
: identify segment to install as (or first possible target).
* When find_free is TRUE, th
is is
modified on return to indicate the
* actual installation location or last segment searched.
*
* tmppath: initial name of file to install. It will be renamed into place.
...
...
@@ -3317,7 +3317,7 @@ PreallocXlogFiles(XLogRecPtr endptr)
}
/*
* Get the
log/seg
of the latest removed or recycled WAL segment.
* Get the
segno
of the latest removed or recycled WAL segment.
* Returns 0/0 if no WAL segments have been removed since startup.
*/
void
...
...
@@ -3332,7 +3332,7 @@ XLogGetLastRemoved(XLogSegNo *segno)
}
/*
* Update the last removed
log/seg
pointer in shared memory, to reflect
* Update the last removed
segno
pointer in shared memory, to reflect
* that the given XLOG file has been removed.
*/
static
void
...
...
@@ -3352,7 +3352,7 @@ UpdateLastRemovedPtr(char *filename)
}
/*
* Recycle or remove all log files older or equal to passed
log/seg#
* Recycle or remove all log files older or equal to passed
segno
*
* endptr is current (or recent) end of xlog; this is used to determine
* whether we want to recycle rather than delete no-longer-wanted log files.
...
...
src/backend/replication/walreceiver.c
View file @
ec786c6c
...
...
@@ -68,7 +68,7 @@ walrcv_disconnect_type walrcv_disconnect = NULL;
#define NAPTIME_PER_CYCLE 100
/* max sleep time between cycles (100ms) */
/*
* These variables are used similarly to openLogFile/
Id/Seg
/Off,
* These variables are used similarly to openLogFile/
SegNo
/Off,
* but for walreceiver to write the XLOG. recvFileTLI is the TimeLineID
* corresponding the filename of recvFile, used for error messages.
*/
...
...
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