提交 19dccfde 编写于 作者: D Daniel Gustafsson

Fix typos and comment style in cdbcat.c

Fixes a few observed spelling errors and also removes excessive
whitespace in comments.
上级 7363a6d9
......@@ -201,7 +201,7 @@ GpPolicyFetch(MemoryContext mcxt, Oid tbloid)
Assert(nattrs >= 0);
}
/* Create an GpPolicy object. */
/* Create a GpPolicy object. */
policy = (GpPolicy *) MemoryContextAlloc(mcxt, SizeOfGpPolicy(nattrs));
policy->ptype = POLICYTYPE_PARTITIONED;
policy->nattrs = nattrs;
......@@ -253,7 +253,6 @@ extract_INT2OID_array(Datum array_datum, int *lenp, int16 **vecp)
/*
* Sets the policy of a table into the gp_distribution_policy table
* from a GpPolicy structure.
*
*/
void
GpPolicyStore(Oid tbloid, const GpPolicy *policy)
......@@ -325,7 +324,6 @@ GpPolicyStore(Oid tbloid, const GpPolicy *policy)
/*
* Sets the policy of a table into the gp_distribution_policy table
* from a GpPolicy structure.
*
*/
void
GpPolicyReplace(Oid tbloid, const GpPolicy *policy)
......@@ -425,7 +423,6 @@ GpPolicyReplace(Oid tbloid, const GpPolicy *policy)
/*
* Removes the policy of a table from the gp_distribution_policy table
* Does nothing if the policy doesn't exist.
*/
void
......@@ -456,7 +453,7 @@ GpPolicyRemove(Oid tbloid)
/*
* Returns true only if the policy is a randomly distributed. In other cases,
* including non-distributed table case, returns fase.
* including non-distributed table case, returns false.
*/
bool
GpPolicyIsRandomly(GpPolicy *policy)
......@@ -526,7 +523,7 @@ checkPolicyForUniqueIndex(Relation rel, AttrNumber *indattr, int nidxatts,
* If the existing policy is not a subset, we must either error out or
* update the distribution policy. It might be tempting to say that even
* when the policy is a subset, we should update it to match the index
* definition. The problem then is that if the user actually wants to
* definition. The problem then is that if the user actually wants a
* distribution on (a, b) but then creates an index on (a, b, c) we'll
* change the policy underneath them.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册