mirror of https://github.com/citusdata/citus.git
Merge pull request #479 from citusdata/fix_mixed_code_and_declaration_warning
FIX "mixed declarations and code" Warning in multi_physical_planner.cpull/414/head
commit
25382c289b
|
@ -1729,6 +1729,7 @@ BuildMapMergeJob(Query *jobQuery, List *dependedJobList, Var *partitionKey,
|
||||||
bool hasUninitializedShardInterval = false;
|
bool hasUninitializedShardInterval = false;
|
||||||
uint32 shardCount = cache->shardIntervalArrayLength;
|
uint32 shardCount = cache->shardIntervalArrayLength;
|
||||||
ShardInterval **sortedShardIntervalArray = cache->sortedShardIntervalArray;
|
ShardInterval **sortedShardIntervalArray = cache->sortedShardIntervalArray;
|
||||||
|
char basePartitionMethod PG_USED_FOR_ASSERTS_ONLY = 0;
|
||||||
|
|
||||||
hasUninitializedShardInterval = cache->hasUninitializedShardInterval;
|
hasUninitializedShardInterval = cache->hasUninitializedShardInterval;
|
||||||
if (hasUninitializedShardInterval)
|
if (hasUninitializedShardInterval)
|
||||||
|
@ -1737,9 +1738,9 @@ BuildMapMergeJob(Query *jobQuery, List *dependedJobList, Var *partitionKey,
|
||||||
"missing min/max values")));
|
"missing min/max values")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
basePartitionMethod = PartitionMethod(baseRelationId);
|
||||||
|
|
||||||
/* this join-type currently doesn't work for hash partitioned tables */
|
/* this join-type currently doesn't work for hash partitioned tables */
|
||||||
char basePartitionMethod PG_USED_FOR_ASSERTS_ONLY =
|
|
||||||
PartitionMethod(baseRelationId);
|
|
||||||
Assert(basePartitionMethod != DISTRIBUTE_BY_HASH);
|
Assert(basePartitionMethod != DISTRIBUTE_BY_HASH);
|
||||||
|
|
||||||
mapMergeJob->partitionType = RANGE_PARTITION_TYPE;
|
mapMergeJob->partitionType = RANGE_PARTITION_TYPE;
|
||||||
|
|
Loading…
Reference in New Issue