mirror of https://github.com/BOINC/boinc.git
- 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:
parent
36225f7200
commit
8ab95a6db9
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue