Skip to content

Commit cef27ae

Browse files
committed
Fix compiler warning
A variable was unused in non-assert builds. Simplify the code to avoid the issue. Reported-by: Erik Rijkers <er@xs4all.nl>
1 parent ab3e4fb commit cef27ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/replication/logical/worker.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,6 @@ apply_handle_update_internal(ResultRelInfo *relinfo,
788788
LogicalRepRelMapEntry *relmapentry)
789789
{
790790
Relation localrel = relinfo->ri_RelationDesc;
791-
LogicalRepRelation *remoterel = &relmapentry->remoterel;
792791
Oid idxoid;
793792
EPQState epqstate;
794793
TupleTableSlot *localslot;
@@ -806,7 +805,7 @@ apply_handle_update_internal(ResultRelInfo *relinfo,
806805
*/
807806
idxoid = GetRelationIdentityOrPK(localrel);
808807
Assert(OidIsValid(idxoid) ||
809-
(remoterel->replident == REPLICA_IDENTITY_FULL));
808+
(relmapentry->remoterel.replident == REPLICA_IDENTITY_FULL));
810809

811810
if (OidIsValid(idxoid))
812811
found = RelationFindReplTupleByIndex(localrel, idxoid,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy