Commit 8a4f9522 authored by Amit Kapila's avatar Amit Kapila

Fix relcache reference leak introduced by ce0fdbfe.

Author: Sawada Masahiko
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAD21AoA7ZEfsOXQ9HQqMv3QYGsEm2H5Wk5ic5S=mvzDf-3a3SA@mail.gmail.com
parent bcf2667b
...@@ -353,6 +353,7 @@ GetSubscriptionRelState(Oid subid, Oid relid, XLogRecPtr *sublsn) ...@@ -353,6 +353,7 @@ GetSubscriptionRelState(Oid subid, Oid relid, XLogRecPtr *sublsn)
if (!HeapTupleIsValid(tup)) if (!HeapTupleIsValid(tup))
{ {
table_close(rel, AccessShareLock);
*sublsn = InvalidXLogRecPtr; *sublsn = InvalidXLogRecPtr;
return SUBREL_STATE_UNKNOWN; return SUBREL_STATE_UNKNOWN;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment