mirror of https://github.com/citusdata/citus.git
Bug fix
parent
2f3f212746
commit
f3a391b80f
|
@ -560,7 +560,7 @@ SplitOffCommandList(ShardInterval *sourceShard, ShardInterval *splitOffShard)
|
|||
* commands in parallel. Finally, it sends commit messages to all connections
|
||||
* and close them.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
ExecuteCommandListOnPlacements(List *commandList, List *placementList)
|
||||
{
|
||||
List *workerConnectionList = NIL;
|
||||
|
|
|
@ -570,10 +570,10 @@ CreateSplitCopyCommand(ShardInterval *sourceShardSplitInterval,
|
|||
|
||||
StringInfo splitCopyInfoRow = makeStringInfo();
|
||||
appendStringInfo(splitCopyInfoRow,
|
||||
"ROW(%lu, %lu, %lu, %u)::citus.split_copy_info",
|
||||
"ROW(%lu, %d, %d, %u)::citus.split_copy_info",
|
||||
splitChildShardInterval->shardId,
|
||||
splitChildShardInterval->minValue,
|
||||
splitChildShardInterval->maxValue,
|
||||
DatumGetInt32(splitChildShardInterval->minValue),
|
||||
DatumGetInt32(splitChildShardInterval->maxValue),
|
||||
destinationWorkerNode->nodeId);
|
||||
appendStringInfo(splitCopyInfoArray, "%s", splitCopyInfoRow->data);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ ParseSplitCopyInfoDatum(Datum splitCopyInfoDatum, SplitCopyInfo **splitCopyInfo)
|
|||
"destination_shard_min_value for split_copy_info cannot be null.")));
|
||||
}
|
||||
char *destinationMinHash = text_to_cstring(DatumGetTextP(minValueDatum));
|
||||
copyInfo->destinationShardMinHashValue = pg_strtoint64(destinationMinHash);
|
||||
copyInfo->destinationShardMinHashValue = pg_strtoint32(destinationMinHash);
|
||||
|
||||
Datum maxValueDatum = GetAttributeByName(dataTuple, "destination_shard_max_value",
|
||||
&isnull);
|
||||
|
@ -108,7 +108,7 @@ ParseSplitCopyInfoDatum(Datum splitCopyInfoDatum, SplitCopyInfo **splitCopyInfo)
|
|||
"destination_shard_max_value for split_copy_info cannot be null.")));
|
||||
}
|
||||
char *destinationMaxHash = text_to_cstring(DatumGetTextP(maxValueDatum));
|
||||
copyInfo->destinationShardMaxHashValue = pg_strtoint64(destinationMaxHash);
|
||||
copyInfo->destinationShardMaxHashValue = pg_strtoint32(destinationMaxHash);
|
||||
|
||||
Datum nodeIdDatum = GetAttributeByName(dataTuple, "destination_shard_node_id",
|
||||
&isnull);
|
||||
|
|
Loading…
Reference in New Issue