mirror of https://github.com/citusdata/citus.git
fix some obvious typo and reduce usage of magic number (#7130)
fix some obvious typo and reduce usage of magic number Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>pull/7135/head
parent
682dca1f12
commit
ba2a0aec16
|
@ -72,7 +72,7 @@ DistShardRelationId(void)
|
|||
|
||||
|
||||
/*
|
||||
* DistShardRelationId returns the relation id of the pg_dist_shard
|
||||
* DistShardShardidIndexId returns the relation id of the pg_dist_shard_shardid_index
|
||||
*/
|
||||
static Oid
|
||||
DistShardShardidIndexId(void)
|
||||
|
@ -87,7 +87,7 @@ DistShardShardidIndexId(void)
|
|||
|
||||
|
||||
/*
|
||||
* DistShardRelationId returns the relation id of the pg_dist_shard
|
||||
* DistPartitionRelationId returns the relation id of the pg_dist_partition
|
||||
*/
|
||||
static Oid
|
||||
DistPartitionRelationId(void)
|
||||
|
@ -376,7 +376,8 @@ CdcIsReferenceTableViaCatalog(Oid relationId)
|
|||
* A table is a reference table when its partition method is 'none'
|
||||
* and replication model is 'two phase commit'
|
||||
*/
|
||||
return partitionMethodChar == 'n' && replicationModelChar == 't';
|
||||
return partitionMethodChar == DISTRIBUTE_BY_NONE &&
|
||||
replicationModelChar == REPLICATION_MODEL_2PC;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ struct TableDDLCommand
|
|||
|
||||
/*
|
||||
* This union contains one (1) typed field for every implementation for
|
||||
* TableDDLCommand. A union enforces no overloading of fields but instead requiers at
|
||||
* TableDDLCommand. A union enforces no overloading of fields but instead requires at
|
||||
* most one of the fields to be used at any time.
|
||||
*/
|
||||
union
|
||||
|
|
Loading…
Reference in New Issue