mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Fix the same-rel optimization when creating WAL records.
prev_regbuf was never set, and therefore the same-rel flag was never set on WAL records. Report and fix by Zhanq Zq
This commit is contained in:
parent
3c000fd9a6
commit
ec3d976bce
@ -667,10 +667,10 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
|
|||||||
{
|
{
|
||||||
samerel = true;
|
samerel = true;
|
||||||
bkpb.fork_flags |= BKPBLOCK_SAME_REL;
|
bkpb.fork_flags |= BKPBLOCK_SAME_REL;
|
||||||
prev_regbuf = regbuf;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
samerel = false;
|
samerel = false;
|
||||||
|
prev_regbuf = regbuf;
|
||||||
|
|
||||||
/* Ok, copy the header to the scratch buffer */
|
/* Ok, copy the header to the scratch buffer */
|
||||||
memcpy(scratch, &bkpb, SizeOfXLogRecordBlockHeader);
|
memcpy(scratch, &bkpb, SizeOfXLogRecordBlockHeader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user