- scheduler: fix earlier fix to HR race condition.

I was doing "careful update" but not checking
    that the # of affected rows is 1

svn path=/trunk/boinc/; revision=14757
This commit is contained in:
David Anderson 2008-02-18 04:57:27 +00:00
parent 36225f7200
commit 8ab95a6db9
2 changed files with 9 additions and 0 deletions

View File

@ -1438,3 +1438,11 @@ David Feb 17 2008
html/user/
team_edit_action.php
David Feb 17 2008
- scheduler: fix earlier fix to HR race condition.
I was doing "careful update" but not checking
that the # of affected rows is 1
sched/
sched_hr.C

View File

@ -103,6 +103,7 @@ bool already_sent_to_different_platform_careful(
sprintf(buf2, "hr_class=%d", wu_hr_class);
retval = db_wu.update_field(buf, buf2);
if (retval) return true;
if (boinc_db.affected_rows() != 1) return true;
}
return wreq.hr_reject_temp;
}