From 7bf7e415942981daa37e183571374afa9fe4cdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 21 Aug 2019 18:54:05 +0000 Subject: [PATCH] commands/index.c: Fix assertion typo --- src/backend/distributed/commands/index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/distributed/commands/index.c b/src/backend/distributed/commands/index.c index 428c930c5..b53c5d3f9 100644 --- a/src/backend/distributed/commands/index.c +++ b/src/backend/distributed/commands/index.c @@ -190,8 +190,8 @@ ErrorIfReindexOnDistributedTable(ReindexStmt *ReindexStatement) return; } - Assert(ReindexStatement->relkind == REINDEX_OBJECT_INDEX || - ReindexStatement->relkind == REINDEX_OBJECT_TABLE); + Assert(ReindexStatement->kind == REINDEX_OBJECT_INDEX || + ReindexStatement->kind == REINDEX_OBJECT_TABLE); /* * XXX: Consider using RangeVarGetRelidExtended with a permission