提交 fc25fbcf 编写于 作者: H Heikki Linnakangas

Pass relation name to ReadBuffer(), for error messages.

Spotted while debugging a buggy patch of mine, that the relation names
in the ReadBuffer() error messages currently come out as "(null)". Would
segfault on with a different libc implementation.
上级 42534374
......@@ -196,7 +196,7 @@ ReadBuffer(Relation reln, BlockNumber blockNum)
blockNum,
false, /* zeroPage */
NULL, /* strategy */
NULL,
RelationGetRelationName(reln),
&isHit);
if (isHit)
......@@ -969,7 +969,7 @@ ReadBufferWithStrategy(Relation reln, BlockNumber blockNum,
blockNum,
false, /* zeroPage */
strategy,
NULL,
RelationGetRelationName(reln),
&isHit);
if (isHit)
......@@ -1007,7 +1007,7 @@ ReadOrZeroBuffer(Relation reln, BlockNumber blockNum)
blockNum,
true, /* zeroPage */
NULL, /* strategy */
NULL,
RelationGetRelationName(reln),
&isHit);
if (isHit)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册