- server: fix bug in restrict_wu_to_user() that caused it

to go into infinite loop


svn path=/trunk/boinc/; revision=26006
This commit is contained in:
David Anderson 2012-08-11 04:20:48 +00:00
parent cd1f79fbbc
commit 0129c1c53d
2 changed files with 8 additions and 1 deletions

View File

@ -5418,3 +5418,10 @@ David 10 Aug 2012
api/
boinc_api.cpp,h
David 10 Aug 2012
- server: fix bug in restrict_wu_to_user() that caused it
to go into infinite loop
sched/
sched_util.cpp

View File

@ -330,7 +330,7 @@ int restrict_wu_to_user(WORKUNIT& _wu, int userid) {
sprintf(buf, "where workunitid=%d and server_state=%d",
wu.id, RESULT_SERVER_STATE_UNSENT
);
while (result.enumerate(buf)) {
while (!result.enumerate(buf)) {
char buf2[256];
sprintf(buf2, "server_state=%d, outcome=%d",
RESULT_SERVER_STATE_OVER,