// until we get back results from all of the partitions
// TODO: The base information of a set of FragmentTaskMessages should be moved into
// the message wrapper (e.g., base partition, client handle)
boolean first = true;
int fragmentCount = request.getFragmentsCount();
PartitionSet partitions = null;
if (fragmentCount == 1) {
WorkFragment work = CollectionUtil.first(request.getFragmentsList());
partitions = this.catalogContext.getPartitionSetSingleton(work.getPartitionId());
}
else {
partitions = new PartitionSet();
for (WorkFragment work : request.getFragmentsList()) {
partitions.add(work.getPartitionId());
} // FOR
}
for (WorkFragment work : request.getFragmentsList()) {
// Always initialize the TransactionWorkCallback for the first callback