From 17db82875fe2d5096b96e8a5940a660096a37247 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 5 Jan 2016 15:46:55 +0100 Subject: [PATCH] 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. --- src/test/regress/regress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/regress/regress.c b/src/test/regress/regress.c index b640283705..40267ca90b 100644 --- a/src/test/regress/regress.c +++ b/src/test/regress/regress.c @@ -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); -- GitLab