Commit 5da408e6 authored by Leo Gordon's avatar Leo Gordon
Browse files

nasty little bug

parent 8d6aca93
...@@ -859,7 +859,7 @@ sub _pick_best_analysis_for_new_worker { ...@@ -859,7 +859,7 @@ sub _pick_best_analysis_for_new_worker {
foreach $stats (@$stats_list) { foreach $stats (@$stats_list) {
$self->safe_synchronize_AnalysisStats($stats); $self->safe_synchronize_AnalysisStats($stats);
return $stats if(($stats->status ne 'BLOCKED') and ($stats->num_required_workers > 0) and (!defined($rc_id) or ($stats->rc_id = $rc_id))); return $stats if(($stats->status ne 'BLOCKED') and ($stats->num_required_workers > 0) and (!defined($rc_id) or ($stats->rc_id == $rc_id)));
} }
($stats) = @{$statsDBA->fetch_by_needed_workers(1,$self->{maximise_concurrency}, $rc_id)}; ($stats) = @{$statsDBA->fetch_by_needed_workers(1,$self->{maximise_concurrency}, $rc_id)};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment