[typo] fix wrong comments

HasDistributionKey & HasDistributionKeyCacheEntry returns true
when the corresponding table has a distribution key, the comments
state the opposite, which should be fixed.

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
pull/7223/head
Zhao Junwang 2023-09-25 19:33:35 +08:00
parent a9d28ca96f
commit 09d932ea81
1 changed files with 3 additions and 4 deletions

View File

@ -521,8 +521,7 @@ IsCitusTableTypeCacheEntry(CitusTableCacheEntry *tableEntry, CitusTableType tabl
/*
* HasDistributionKey returs true if given Citus table doesn't have a
* distribution key.
* HasDistributionKey returns true if given Citus table has a distribution key.
*/
bool
HasDistributionKey(Oid relationId)
@ -538,8 +537,8 @@ HasDistributionKey(Oid relationId)
/*
* HasDistributionKey returs true if given cache entry identifies a Citus
* table that doesn't have a distribution key.
* HasDistributionKeyCacheEntry returns true if given cache entry identifies a
* Citus table that has a distribution key.
*/
bool
HasDistributionKeyCacheEntry(CitusTableCacheEntry *tableEntry)