mirror of https://github.com/citusdata/citus.git
Fix wrong comments around HasDistributionKey() (#7223)
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> Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>pull/7262/head
parent
db13afaa7b
commit
2d1444188c
|
@ -521,8 +521,7 @@ IsCitusTableTypeCacheEntry(CitusTableCacheEntry *tableEntry, CitusTableType tabl
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HasDistributionKey returs true if given Citus table doesn't have a
|
* HasDistributionKey returns true if given Citus table has a distribution key.
|
||||||
* distribution key.
|
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
HasDistributionKey(Oid relationId)
|
HasDistributionKey(Oid relationId)
|
||||||
|
@ -538,8 +537,8 @@ HasDistributionKey(Oid relationId)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HasDistributionKey returs true if given cache entry identifies a Citus
|
* HasDistributionKeyCacheEntry returns true if given cache entry identifies a
|
||||||
* table that doesn't have a distribution key.
|
* Citus table that has a distribution key.
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
HasDistributionKeyCacheEntry(CitusTableCacheEntry *tableEntry)
|
HasDistributionKeyCacheEntry(CitusTableCacheEntry *tableEntry)
|
||||||
|
|
Loading…
Reference in New Issue