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

Commitff03112

Browse files
committed
Fix off-by-one bug in XactLogCommitRecord
Commit1eb6d65 introduced zeroed alignment bytes in the GID fieldof commit/abort WAL records. Fixup commitcf5a189 later changedthat representation into a regular cstring with a single terminatingzero byte, but it also introduced an off-by-one mistake. Fix that.Author: Nikhil SontakkeReported-by: Nikhil SontakkeDiscussion:https://postgr.es/m/CAMGcDxey6dG1DP34_tJMoWPcp5sPJUAL4K5CayUUXLQSx2GQpA@mail.gmail.com
1 parentdad8bed commitff03112

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5365,7 +5365,7 @@ XactLogCommitRecord(TimestampTz commit_time,
53655365
{
53665366
XLogRegisterData((char*) (&xl_twophase),sizeof(xl_xact_twophase));
53675367
if (xl_xinfo.xinfo&XACT_XINFO_HAS_GID)
5368-
XLogRegisterData((char*)twophase_gid,strlen(twophase_gid));
5368+
XLogRegisterData((char*)twophase_gid,strlen(twophase_gid)+1);
53695369
}
53705370

53715371
if (xl_xinfo.xinfo&XACT_XINFO_HAS_ORIGIN)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp