diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-06-27 17:53:53 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-06-27 17:53:53 +0300 |
commit | ec786c6c81bfa1067319305ff84b862eba3b2f27 (patch) | |
tree | 1f9a29393f1abe3c14560ff2de7ee651533ee7cf /src/backend/access | |
parent | 7700b82e6b071f298e3426042197c13843a5b499 (diff) | |
download | postgresql-ec786c6c81bfa1067319305ff84b862eba3b2f27.tar.gz postgresql-ec786c6c81bfa1067319305ff84b862eba3b2f27.zip |
I neglected many comments in the log+seg -> 64-bit segno patch. Fix.
Reported by Amit Kapila.
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/transam/xlog.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 642c129d9fa..f7807560bf2 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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, these are modified on return to indicate the + * *segno: identify segment to install as (or first possible target). + * When find_free is TRUE, this 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. |