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

Commitf1ef111

Browse files
committed
Fix a few more redundant calls of GetLatestSnapshot()
Commit2367503 fixed this in RelationFindReplTupleByIndex(), but Imissed two other similar cases.Per report from Ranier Vilela.Discussion:https://www.postgresql.org/message-id/CAEudQArUT1dE45WN87F-Gb7XMy_hW6x1DFd3sqdhhxP-RMDa0Q@mail.gmail.comBackpatch-through: 13
1 parentc1dd3a9 commitf1ef111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/executor/execReplication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode,
434434

435435
PushActiveSnapshot(GetLatestSnapshot());
436436

437-
res=table_tuple_lock(rel,&(outslot->tts_tid),GetLatestSnapshot(),
437+
res=table_tuple_lock(rel,&(outslot->tts_tid),GetActiveSnapshot(),
438438
outslot,
439439
GetCurrentCommandId(false),
440440
lockmode,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp