Skip to content

Commit 324e0b6

Browse files
committed
Fix a few more redundant calls of GetLatestSnapshot()
Commit 2367503 fixed this in RelationFindReplTupleByIndex(), but I missed two other similar cases. Per report from Ranier Vilela. Discussion: https://www.postgresql.org/message-id/CAEudQArUT1dE45WN87F-Gb7XMy_hW6x1DFd3sqdhhxP-RMDa0Q@mail.gmail.com Backpatch-through: 13
1 parent 8171d2d commit 324e0b6

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
@@ -393,7 +393,7 @@ RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode,
393393

394394
PushActiveSnapshot(GetLatestSnapshot());
395395

396-
res = table_tuple_lock(rel, &(outslot->tts_tid), GetLatestSnapshot(),
396+
res = table_tuple_lock(rel, &(outslot->tts_tid), GetActiveSnapshot(),
397397
outslot,
398398
GetCurrentCommandId(false),
399399
lockmode,

0 commit comments

Comments
 (0)