*** empty log message ***

svn path=/trunk/boinc/; revision=8137
This commit is contained in:
David Anderson 2005-09-22 00:30:01 +00:00
parent 20dcd8ae39
commit b96bdc7c58
2 changed files with 83 additions and 84 deletions

View File

@ -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 "