dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2012-09-12 18:18:48 +00:00
parent e6cb036898
commit bf1042c832

View File

@ -58,6 +58,10 @@ public:
pool.schedule(boost::bind(&ParallelAggregatingBlockInputStream::calculate, this, boost::ref(inputs[i]), boost::ref(*many_data[i]), boost::ref(exceptions[i]))); pool.schedule(boost::bind(&ParallelAggregatingBlockInputStream::calculate, this, boost::ref(inputs[i]), boost::ref(*many_data[i]), boost::ref(exceptions[i])));
} }
pool.wait(); pool.wait();
for (size_t i = 0, size = exceptions.size(); i < size; ++i)
if (exceptions[i])
exceptions[i]->rethrow();
AggregatedDataVariantsPtr res = aggregator->merge(many_data); AggregatedDataVariantsPtr res = aggregator->merge(many_data);
return aggregator->convertToBlock(*res); return aggregator->convertToBlock(*res);