mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix bug in WAL_DEBUG.
The record header was not copied correctly to the buffer that was passed to the rm_desc function. Broken by my rm_desc signature refactoring patch.
This commit is contained in:
@ -1276,7 +1276,7 @@ begin:;
|
|||||||
rdt_lastnormal->next = NULL;
|
rdt_lastnormal->next = NULL;
|
||||||
|
|
||||||
initStringInfo(&recordbuf);
|
initStringInfo(&recordbuf);
|
||||||
appendBinaryStringInfo(&recordbuf, (char *) &rechdr, sizeof(XLogRecord));
|
appendBinaryStringInfo(&recordbuf, (char *) rechdr, sizeof(XLogRecord));
|
||||||
for (; rdata != NULL; rdata = rdata->next)
|
for (; rdata != NULL; rdata = rdata->next)
|
||||||
appendBinaryStringInfo(&recordbuf, rdata->data, rdata->len);
|
appendBinaryStringInfo(&recordbuf, rdata->data, rdata->len);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user