1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

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

View File

@ -180,6 +180,9 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
if (found) if (found)
return entry->relid; 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 */ /* ok, no previous cache entry, do it the hard way */
/* check shared tables */ /* check shared tables */