*** empty log message ***

svn path=/trunk/boinc/; revision=3687
This commit is contained in:
David Anderson 2004-06-21 23:37:06 +00:00
parent 9361e2fb27
commit cb3fbf95ee
2 changed files with 32 additions and 10 deletions

View File

@ -71,13 +71,7 @@ bool do_pass(APP& app) {
}
}
retval = assimilate_handler(wu, results, canonical_result);
if (retval) {
log_messages.printf(SCHED_MSG_LOG::DEBUG,
"[%s] handler failed: %d; exiting\n", wu.name, retval
);
exit(1);
}
assimilate_handler(wu, results, canonical_result);
wu.assimilate_state = ASSIMILATE_DONE;
wu.transition_time = time(0);

View File

@ -307,13 +307,13 @@ void xml_escape(char* in, string& out) {
string_replace(out, x5, y5);
}
void write_host(HOST& host, FILE* f, bool detail, bool show_user) {
void write_host(HOST& host, FILE* f, bool detail) {
fprintf(f,
"<host>\n"
" <id>%d</id>\n",
host.id
);
if (show_user) {
if (detail) {
DB_USER user;
user.lookup_id(host.userid);
if (user.show_hosts) {
@ -429,7 +429,7 @@ void write_user(USER& user, FILE* f, bool detail) {
sprintf(buf, "where userid=%d", user.id);
while (!host.enumerate(buf)) {
if (host.total_credit > 0) {
write_host(host, f, false, false);
write_host(host, f, false);
}
}
}
@ -662,8 +662,36 @@ int ENUMERATION::make_it_happen(char* output_dir) {
}
break;
case TABLE_HOST:
n = 0;
while(!host.enumerate(clause)) {
for (i=0; i<outputs.size(); i++) {
OUTPUT& out = outputs[i];
if (sort == SORT_ID && out.recs_per_file) {
out.nzfile->set_id(n++);
}
if (out.zfile) {
write_host(host, out.zfile->f, out.detail);
} else {
write_host(host, out.nzfile->f, out.detail);
}
}
}
break;
case TABLE_TEAM:
n = 0;
while(!team.enumerate(clause)) {
for (i=0; i<outputs.size(); i++) {
OUTPUT& out = outputs[i];
if (sort == SORT_ID && out.recs_per_file) {
out.nzfile->set_id(n++);
}
if (out.zfile) {
write_team(team, out.zfile->f, out.detail);
} else {
write_team(team, out.nzfile->f, out.detail);
}
}
}
break;
}
for (i=0; i<outputs.size(); i++) {