mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08: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;
|
||||
bkpb.fork_flags |= BKPBLOCK_SAME_REL;
|
||||
prev_regbuf = regbuf;
|
||||
}
|
||||
else
|
||||
samerel = false;
|
||||
prev_regbuf = regbuf;
|
||||
|
||||
/* Ok, copy the header to the scratch buffer */
|
||||
memcpy(scratch, &bkpb, SizeOfXLogRecordBlockHeader);
|
||||
|
Loading…
Reference in New Issue
Block a user