提交 17db8287 编写于 作者: D Daniel Gustafsson

Fix memcmp() invocation in checkRelationAfterInvalidation

Due to the misplaced conditional check, the byte string comparison
in checkRelationAfterInvalidation() will only check the first byte
of the passed byte strings.
上级 0cc3c875
......@@ -2403,7 +2403,7 @@ checkRelationAfterInvalidation(PG_FUNCTION_ARGS)
RelationCacheInvalidate();
if (memcmp(&nodeinfo,
&relation->rd_segfile0_relationnodeinfo,
sizeof(struct RelationNodeInfo) != 0))
sizeof(struct RelationNodeInfo)) != 0)
elog(ERROR, "node info does not match");
relation_close(relation, AccessShareLock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册