Client spamming server hotfix

svn path=/trunk/boinc/; revision=3780
This commit is contained in:
Rom Walton 2004-07-03 23:44:50 +00:00
parent a06b9c4fdc
commit 0b66bb3880
1 changed files with 5 additions and 4 deletions

View File

@ -370,14 +370,14 @@ bool do_pass() {
SCHED_MSG_LOG::DEBUG,
"[WU#%d %s] Starting Transaction...\n",
items[0].id, items[0].name
);
);
retval = transitioner.start_transaction();
if (retval) {
log_messages.printf(
SCHED_MSG_LOG::CRITICAL,
"[WU#%d %s] transitioner.start_transaction() == %d\n",
items[0].id, items[0].name, retval
);
);
}
handle_wu(transitioner, items);
@ -386,19 +386,20 @@ bool do_pass() {
SCHED_MSG_LOG::DEBUG,
"[WU#%d %s] Committing Transaction...\n",
items[0].id, items[0].name
);
);
retval = transitioner.commit_transaction();
if (retval) {
log_messages.printf(
SCHED_MSG_LOG::CRITICAL,
"[WU#%d %s] transitioner.commit_transaction() == %d\n",
items[0].id, items[0].name, retval
);
);
} else {
log_messages.printf(
SCHED_MSG_LOG::DEBUG,
"[WU#%d %s] Committed Transaction Successfully...\n",
items[0].id, items[0].name
);
}
check_stop_daemons();