mirror of https://github.com/BOINC/boinc.git
scheduler: fix possible bug if use assigned jobs with FCGI scheduler
Need to end the enumeration.
This commit is contained in:
parent
cc6e2f573e
commit
1c6267f2f1
|
@ -16,6 +16,9 @@
|
|||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// DEPRECATED - WON'T WORK.
|
||||
// result.claimed_credit is not used any more
|
||||
|
||||
// Award credit to users/hosts/teams for WU which have been
|
||||
// cancelled or have otherwise failed (error_mask != 0).
|
||||
// Credit granted is credit claimed, with a hardwired limit of 300 units.
|
||||
|
|
|
@ -256,7 +256,10 @@ bool send_jobs(int assign_type) {
|
|||
}
|
||||
|
||||
while (!asg.enumerate(query)) {
|
||||
if (!work_needed(false)) continue;
|
||||
if (!work_needed(false)) {
|
||||
asg.end_enumerate();
|
||||
break;
|
||||
}
|
||||
|
||||
// if the WU doesn't exist, delete the assignment record.
|
||||
//
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// This file is part of BOINC.
|
||||
// http://boinc.berkeley.edu
|
||||
// Copyright (C) 2008 University of California
|
||||
// Copyright (C) 2015 University of California
|
||||
//
|
||||
// BOINC is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License
|
||||
|
@ -15,10 +15,10 @@
|
|||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// job dispatch using a score-based approach. See sched_scure.cpp
|
||||
// job dispatch using a score-based approach. See sched_score.cpp
|
||||
|
||||
struct JOB {
|
||||
int index;
|
||||
int index; // index into shared-mem job array
|
||||
int result_id;
|
||||
double score;
|
||||
APP* app;
|
||||
|
|
Loading…
Reference in New Issue