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:
3
src/backend/utils/cache/relfilenodemap.c
vendored
3
src/backend/utils/cache/relfilenodemap.c
vendored
@ -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 */
|
||||||
|
Reference in New Issue
Block a user