postgrespro.git / summary / log / commit / refs

commit    cef27ae01ac872355b2bd56c0882aafe5c6f08de
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Tue Mar 24 15:01:06 2020 +0000

    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>


src/backend/replication/logical/worker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index e5f0aaa8f7..fa3811783f 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -788,7 +788,6 @@ apply_handle_update_internal(ResultRelInfo *relinfo, LogicalRepRelMapEntry *relmapentry) { Relation localrel = relinfo->ri_RelationDesc; - LogicalRepRelation *remoterel = &relmapentry->remoterel; Oid idxoid; EPQState epqstate; TupleTableSlot *localslot; @@ -806,7 +805,7 @@ apply_handle_update_internal(ResultRelInfo *relinfo, */ idxoid = GetRelationIdentityOrPK(localrel); Assert(OidIsValid(idxoid) || - (remoterel->replident == REPLICA_IDENTITY_FULL)); + (relmapentry->remoterel.replident == REPLICA_IDENTITY_FULL)); if (OidIsValid(idxoid)) found = RelationFindReplTupleByIndex(localrel, idxoid, [parent: ab3e4fbd5421]