A variable was unused in non-assert builds. Simplify the code to
avoid the issue.
Reported-by: Erik Rijkers <er@xs4all.nl>
LogicalRepRelMapEntry *relmapentry)
{
Relation localrel = relinfo->ri_RelationDesc;
- LogicalRepRelation *remoterel = &relmapentry->remoterel;
Oid idxoid;
EPQState epqstate;
TupleTableSlot *localslot;
*/
idxoid = GetRelationIdentityOrPK(localrel);
Assert(OidIsValid(idxoid) ||
- (remoterel->replident == REPLICA_IDENTITY_FULL));
+ (relmapentry->remoterel.replident == REPLICA_IDENTITY_FULL));
if (OidIsValid(idxoid))
found = RelationFindReplTupleByIndex(localrel, idxoid,