Initialize cached OID to Invalid in new hash entries
Andres Freund; bug detected by valgrind
This commit is contained in:
parent
673b527534
commit
e246cfc95f
|
@ -180,6 +180,9 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
|
|||
if (found)
|
||||
return entry->relid;
|
||||
|
||||
/* initialize empty/negative cache entry before doing the actual lookup */
|
||||
entry->relid = InvalidOid;
|
||||
|
||||
/* ok, no previous cache entry, do it the hard way */
|
||||
|
||||
/* check shared tables */
|
||||
|
|
Loading…
Reference in New Issue