提交 e246cfc9 编写于 作者: A Alvaro Herrera

Initialize cached OID to Invalid in new hash entries

Andres Freund; bug detected by valgrind
上级 673b5275
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册