Thread: obsolete comments in xlog.c

obsolete comments in xlog.c

From
Fujii Masao
Date:
Hi,

I found some obsolete comments in xlog.c, which are related to
recently-deleted variable "fromArchive".


diff --git a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index c886571..65675b9 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -2609,8 +2609,8 @@ XLogFileOpen(uint32 log, uint32 seg)/* * Open a logfile segment for reading (during recovery). *
- * If fromArchive is true, the segment is retrieved from archive, otherwise
- * it's read from pg_xlog.
+ * If source = XLOG_FROM_ARCHIVE, the segment is retrieved from archive.
+ * If source = XLOG_FROM_PG_XLOG, it's read from pg_xlog. */static intXLogFileRead(uint32 log, uint32 seg, int emode,
TimeLineIDtli,
 
@@ -2673,8 +2673,6 @@ XLogFileRead(uint32 log, uint32 seg, int emode,
TimeLineID tli, * Open a logfile segment for reading (during recovery). * * This version searches for the segment with
anyTLI listed in expectedTLIs.
 
- * If not in StandbyMode and fromArchive is true, the segment is also
- * searched in pg_xlog if not found in archive. */static intXLogFileReadAnyTLI(uint32 log, uint32 seg, int emode, int
sources)


Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


Re: obsolete comments in xlog.c

From
Heikki Linnakangas
Date:
On 02/06/10 10:39, Fujii Masao wrote:
> I found some obsolete comments in xlog.c, which are related to
> recently-deleted variable "fromArchive".

Thanks, committed.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com