Initialize cached OID to Invalid in new hash entries

Andres Freund; bug detected by valgrind
This commit is contained in:
Alvaro Herrera 2013-08-27 14:53:17 -04:00
parent 673b527534
commit e246cfc95f
1 changed files with 3 additions and 0 deletions

View File

@ -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 */