mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=8137
This commit is contained in:
parent
20dcd8ae39
commit
b96bdc7c58
|
@ -1279,13 +1279,13 @@ int DB_WORK_ITEM::enumerate(
|
|||
order_clause,
|
||||
limit
|
||||
);
|
||||
default: // more than 1 app, so split feeder slots equally amongst them
|
||||
break;
|
||||
default:
|
||||
// more than 1 app, so split feeder slots equally amongst them
|
||||
char strTmp[8192]; // tmp buffer to strcat later
|
||||
limit /= cntApp; // I guess if not evenly divisible may be a slot extra never used?
|
||||
memset(strTmp, 0x00, 8192); // init it just to be nice
|
||||
memset(query, 0x00, MAX_QUERY_LEN); // init it just to be nice
|
||||
// now do a bunch of unions, hope we don't run out of MAX_QUERY_LEN!
|
||||
// actually it's define'd as 250K so should be fine
|
||||
limit /= cntApp;
|
||||
strcpy(strTmp, "");
|
||||
strcpy(query, "");
|
||||
for (int i = 0; i < cntApp; i++) {
|
||||
// note the query is within parentheses, this is so
|
||||
// mysql will apply the limit to the subquery and not
|
||||
|
@ -1311,10 +1311,9 @@ int DB_WORK_ITEM::enumerate(
|
|||
);
|
||||
strcat(query, strTmp);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
sprintf(query,
|
||||
"select high_priority result.id, workunit.* from result left join workunit "
|
||||
"on workunit.id = result.workunitid "
|
||||
|
|
Loading…
Reference in New Issue