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

Commit763b8f5

Browse files
committed
Fix SerializeSnapshot not to overrun the allocated space.
Rushabh Lathia
1 parent369c0b0 commit763b8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/time/snapmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
15151515
* snapshot taken during recovery; all the top-level XIDs are in subxip as
15161516
* well in that case, so we mustn't lose them.
15171517
*/
1518-
if (snapshot->subxcnt>0)
1518+
if (serialized_snapshot->subxcnt>0)
15191519
{
15201520
Sizesubxipoff=sizeof(SerializedSnapshotData)+
15211521
snapshot->xcnt*sizeof(TransactionId);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp