Skip to content

Commit 85ba074

Browse files
committed
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.
1 parent 884dede commit 85ba074

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ begin:;
12761276
rdt_lastnormal->next = NULL;
12771277

12781278
initStringInfo(&recordbuf);
1279-
appendBinaryStringInfo(&recordbuf, (char *) &rechdr, sizeof(XLogRecord));
1279+
appendBinaryStringInfo(&recordbuf, (char *) rechdr, sizeof(XLogRecord));
12801280
for (; rdata != NULL; rdata = rdata->next)
12811281
appendBinaryStringInfo(&recordbuf, rdata->data, rdata->len);
12821282

0 commit comments

Comments
 (0)