agora inbox for pgsql-hackers@postgresql.org  
help / color / mirror / Atom feed
From: Andrey V. Lepikhov <a.lepikhov@postgrespro.ru>
Subject: [PATCH] WAL record local buffer pointer fix
Date: Fri, 17 Aug 2018 07:56:30 +0500

---
 src/backend/access/transam/xlogreader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c
index 4c633c6c49..7bccc68189 100644
--- a/src/backend/access/transam/xlogreader.c
+++ b/src/backend/access/transam/xlogreader.c
@@ -480,6 +480,7 @@ XLogReadRecord(XLogReaderState *state, XLogRecPtr RecPtr, char **errormsg)
 
 		state->ReadRecPtr = RecPtr;
 		memcpy(state->readRecordBuf, record, total_len);
+		record = (XLogRecord *) state->readRecordBuf;
 	}
 
 	/*
-- 
2.17.1


--------------D8C4D1E87F9ED6A81206B106--




view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: a.lepikhov@postgrespro.ru
  Subject: Re: [PATCH] WAL record local buffer pointer fix
  In-Reply-To: <no-message-id-234006@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox