mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
fix build
This commit is contained in:
parent
5e01f348c5
commit
476d25b6b2
@ -901,7 +901,7 @@ PartitionTaskStatus ClusterCopier::tryProcessPartitionTask(const ConnectionTimeo
|
||||
tryLogCurrentException(log, "An error occurred while updating the config");
|
||||
}
|
||||
|
||||
return PartitionTaskStatus::Finished;
|
||||
return res;
|
||||
}
|
||||
|
||||
PartitionTaskStatus ClusterCopier::iterateThroughAllPiecesInPartition(const ConnectionTimeouts & timeouts, ShardPartition & task_partition,
|
||||
@ -909,12 +909,17 @@ PartitionTaskStatus ClusterCopier::iterateThroughAllPiecesInPartition(const Conn
|
||||
{
|
||||
const size_t total_number_of_pieces = task_partition.task_shard.task_table.number_of_splits;
|
||||
|
||||
/// ThreadPool maybe ??
|
||||
PartitionTaskStatus res;
|
||||
PartitionTaskStatus answer = PartitionTaskStatus::Finished;
|
||||
|
||||
for (size_t piece_number = 0; piece_number < total_number_of_pieces; piece_number++)
|
||||
processPartitionPieceTaskImpl(timeouts, task_partition, piece_number, is_unprioritized_task);
|
||||
|
||||
return PartitionTaskStatus::Finished;
|
||||
{
|
||||
res = processPartitionPieceTaskImpl(timeouts, task_partition, piece_number, is_unprioritized_task);
|
||||
if (res == PartitionTaskStatus::Error)
|
||||
answer = res;
|
||||
}
|
||||
|
||||
return answer;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user