Fix a few more redundant calls of GetLatestSnapshot()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: d765226cb9d2e1f4a1efcf45f8e729aafc0e0ddf
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-03-10T17:01:58Z
Releases: 15.13
Fix a few more redundant calls of GetLatestSnapshot()

Commit 2367503177 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

Files

PathChange+/−
src/backend/executor/execReplication.c modified +1 −1

Discussion