Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 799bf3c

Browse files
committed
fix warning in process_remote_update
1 parent 574ee56 commit 799bf3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pglogical_apply.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,8 @@ process_remote_update(StringInfo s, Relation rel)
10671067
bool found_tuple;
10681068
TupleData old_tuple;
10691069
TupleData new_tuple;
1070-
Oid idxoid;
1071-
Relation idxrel = InvalidOid;
1070+
Oid idxoid = InvalidOid;
1071+
Relation idxrel;
10721072
TupleDesc tupDesc = RelationGetDescr(rel);
10731073
ScanKeyData skey[INDEX_MAX_KEYS];
10741074
HeapTuple remote_tuple = NULL;
@@ -1168,7 +1168,7 @@ process_remote_update(StringInfo s, Relation rel)
11681168
}
11691169

11701170
/* release locks upon commit */
1171-
if (OidIsValid(idxrel))
1171+
if (OidIsValid(idxoid))
11721172
index_close(idxrel, NoLock);
11731173

11741174
PopActiveSnapshot();

0 commit comments

Comments
 (0)