svn path=/trunk/boinc/; revision=22306
This commit is contained in:
David Anderson 2010-08-29 08:43:40 +00:00
parent 3129faa5a5
commit bf56e80bce
3 changed files with 16 additions and 3 deletions

View File

@ -6285,3 +6285,11 @@ David 28 Aug 2010
client/
app_control.cpp
cpu_sched.cpp
David 29 Aug 2010
- tweaks
db/
boinc_db.cpp
tools/
backend_lib.cpp

View File

@ -28,6 +28,7 @@
#include <ieeefp.h>
#endif
#include "common_defs.h"
#include "str_util.h"
#include "str_replace.h"
#include "util.h"
@ -1960,8 +1961,10 @@ int DB_SCHED_RESULT_ITEM_SET::update_workunits() {
(int)time(0)
);
for (i=0; i<results.size(); i++) {
if (results[i].id == 0) continue; // skip non-updated results
if (strstr(results[i].name, "asgn")) continue; // skip assigned jobs
if (results[i].id == 0) continue;
// skip non-updated results
if (strstr(results[i].name, ASSIGNED_WU_STR)) continue;
// skip assigned jobs
if (!first) strcat(query, ",");
first = false;
sprintf(buf, "%d", results[i].workunitid);

View File

@ -441,7 +441,9 @@ int create_result_ti(
}
// Create a new result for the given WU.
// This is called ONLY from the transitioner
// This is called from:
// - the transitioner
// - the scheduler (for assigned jobs)
//
int create_result(
WORKUNIT& wu,