- feeder: the query change of 13 April broke the -random_order,

-priority_order, -priority_order_create_time,and -mod options
    (from Nicolas Maire)

sched/
    feeder.C

svn path=/trunk/boinc/; revision=12703
This commit is contained in:
David Anderson 2007-05-21 15:06:43 +00:00
parent 188c49c6d5
commit 9b4eff7284
2 changed files with 12 additions and 4 deletions

View File

@ -5111,3 +5111,11 @@ David 21 May 2007
client/
client_state.C
David 21 May 2007
- feeder: the query change of 13 April broke the -random_order,
-priority_order, -priority_order_create_time,and -mod options
(from Nicolas Maire)
sched/
feeder.C

View File

@ -524,19 +524,19 @@ int main(int argc, char** argv) {
if (!strcmp(argv[i], "-d")) {
log_messages.set_debug_level(atoi(argv[++i]));
} else if (!strcmp(argv[i], "-random_order")) {
order_clause = "order by random ";
order_clause = "order by r1.random ";
} else if (!strcmp(argv[i], "-allapps")) {
all_apps = true;
} else if (!strcmp(argv[i], "-priority_order")) {
order_clause = "order by result.priority desc ";
order_clause = "order by r1.result.priority desc ";
} else if (!strcmp(argv[i], "-priority_order_create_time")) {
order_clause = "order by result.priority desc, workunit.create_time ";
order_clause = "order by r1.result.priority desc, workunit.create_time ";
} else if (!strcmp(argv[i], "-purge_stale")) {
purge_stale_time = atoi(argv[++i])*60;
} else if (!strcmp(argv[i], "-mod")) {
int n = atoi(argv[++i]);
int j = atoi(argv[++i]);
sprintf(select_clause, "and result.id %% %d = %d ", n, j);
sprintf(select_clause, "and r1.result.id %% %d = %d ", n, j);
} else if (!strcmp(argv[i], "-sleep_interval")) {
sleep_interval = atof(argv[++i]);
} else {