mirror of https://github.com/BOINC/boinc.git
parent
ca2a26987a
commit
563db0cbe5
|
@ -10,27 +10,26 @@ alter table app_version
|
||||||
add unique(appid, platformid, version_num);
|
add unique(appid, platformid, version_num);
|
||||||
|
|
||||||
alter table user
|
alter table user
|
||||||
add unique(email_addr);
|
add unique(email_addr),
|
||||||
alter table user
|
add unique(authenticator),
|
||||||
add unique(authenticator);
|
add index ind_tid (teamid),
|
||||||
alter table user
|
add index user_avg (expavg_credit);
|
||||||
add index ind_tid (teamid);
|
|
||||||
create index user_avg on user(expavg_credit);
|
|
||||||
|
|
||||||
alter table team
|
alter table team
|
||||||
add unique(name);
|
add unique(name);
|
||||||
|
|
||||||
alter table workunit
|
alter table workunit
|
||||||
add unique(name);
|
add unique(name),
|
||||||
create index wu_val on workunit(appid, need_validate);
|
add index wu_val (appid, need_validate),
|
||||||
create index wu_retry on workunit(appid, retry_check_time);
|
add index wu_retry (appid, retry_check_time),
|
||||||
create index wu_filedel on workunit(file_delete_state);
|
add index wu_filedel (file_delete_state),
|
||||||
create index wu_assim on workunit(appid, assimilate_state);
|
add index wu_assim (appid, assimilate_state);
|
||||||
|
|
||||||
alter table result
|
alter table result
|
||||||
add unique(name);
|
add unique(name),
|
||||||
create index res_wuid on result(workunitid);
|
add index res_wuid (workunitid),
|
||||||
create index ind_res_st on result(server_state);
|
add index ind_res_st (server_state),
|
||||||
create index res_filedel on result(file_delete_state);
|
add index res_filedel (file_delete_state);
|
||||||
|
|
||||||
create index host_avg on host(expavg_credit);
|
alter table host
|
||||||
|
add index host_avg (expavg_credit);
|
||||||
|
|
|
@ -156,7 +156,7 @@ void make_work() {
|
||||||
while (p) {
|
while (p) {
|
||||||
if (parse_str(p, "<name>", file_name, sizeof(file_name))) {
|
if (parse_str(p, "<name>", file_name, sizeof(file_name))) {
|
||||||
sprintf(
|
sprintf(
|
||||||
new_file_name, "%s_%d_%d", file_name, start_time, i++
|
new_file_name, "%s_%d_%d", file_name, start_time, seqno++
|
||||||
);
|
);
|
||||||
sprintf(pathname, "%s/%s", config.download_dir, file_name);
|
sprintf(pathname, "%s/%s", config.download_dir, file_name);
|
||||||
sprintf(
|
sprintf(
|
||||||
|
@ -166,7 +166,7 @@ void make_work() {
|
||||||
if (system(command)) {
|
if (system(command)) {
|
||||||
fprintf(stderr, "make_work: ERROR\n");
|
fprintf(stderr, "make_work: ERROR\n");
|
||||||
perror(command);
|
perror(command);
|
||||||
exit();
|
exit(1);
|
||||||
}
|
}
|
||||||
strcpy(new_buf, starting_xml);
|
strcpy(new_buf, starting_xml);
|
||||||
replace_file_name(
|
replace_file_name(
|
||||||
|
@ -177,7 +177,7 @@ void make_work() {
|
||||||
p = strtok(0, "\n");
|
p = strtok(0, "\n");
|
||||||
}
|
}
|
||||||
nresults_left = redundancy;
|
nresults_left = redundancy;
|
||||||
sprintf(wu.name, "wu_%d_%d", start_time, seqno);
|
sprintf(wu.name, "wu_%d_%d", start_time, seqno++);
|
||||||
wu.id = 0;
|
wu.id = 0;
|
||||||
wu.create_time = time(0);
|
wu.create_time = time(0);
|
||||||
retval = db_workunit_new(wu);
|
retval = db_workunit_new(wu);
|
||||||
|
|
Loading…
Reference in New Issue