Commit 6e22813b authored by Michael Paquier's avatar Michael Paquier

Fix comment in xlogreader.c

This has been introduced by 709d003f, that has moved readSegNo, readOff
and readPageTLI into a new structure called WALOpenSegment initialized
separately.

Author: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20190926.110809.248342687.horikyota.ntt@gmail.com
parent 7881bb14
...@@ -103,8 +103,7 @@ XLogReaderAllocate(int wal_segment_size, const char *waldir, ...@@ -103,8 +103,7 @@ XLogReaderAllocate(int wal_segment_size, const char *waldir,
state->read_page = pagereadfunc; state->read_page = pagereadfunc;
/* system_identifier initialized to zeroes above */ /* system_identifier initialized to zeroes above */
state->private_data = private_data; state->private_data = private_data;
/* ReadRecPtr and EndRecPtr initialized to zeroes above */ /* ReadRecPtr, EndRecPtr and readLen initialized to zeroes above */
/* readSegNo, readOff, readLen, readPageTLI initialized to zeroes above */
state->errormsg_buf = palloc_extended(MAX_ERRORMSG_LEN + 1, state->errormsg_buf = palloc_extended(MAX_ERRORMSG_LEN + 1,
MCXT_ALLOC_NO_OOM); MCXT_ALLOC_NO_OOM);
if (!state->errormsg_buf) if (!state->errormsg_buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment