Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec3d976

Browse files
committed
Fix the same-rel optimization when creating WAL records.
prev_regbuf was never set, and therefore the same-rel flag was never set onWAL records.Report and fix by Zhanq Zq
1 parent3c000fd commitec3d976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xloginsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
667667
{
668668
samerel= true;
669669
bkpb.fork_flags |=BKPBLOCK_SAME_REL;
670-
prev_regbuf=regbuf;
671670
}
672671
else
673672
samerel= false;
673+
prev_regbuf=regbuf;
674674

675675
/* Ok, copy the header to the scratch buffer */
676676
memcpy(scratch,&bkpb,SizeOfXLogRecordBlockHeader);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp