Content-Length: 272630 | pFad | http://github.com/postgrespro/postgres_cluster/commit/cef27ae01ac872355b2bd56c0882aafe5c6f08de

B4 Fix compiler warning · postgrespro/postgres_cluster@cef27ae · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/cef27ae01ac872355b2bd56c0882aafe5c6f08de

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy