From 8ab95a6db93815344c5c7e0b5751994142397ae0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 18 Feb 2008 04:57:27 +0000 Subject: [PATCH] - 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 --- checkin_notes | 8 ++++++++ sched/sched_hr.C | 1 + 2 files changed, 9 insertions(+) diff --git a/checkin_notes b/checkin_notes index 90b769969c..02a5d8d3ba 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/sched/sched_hr.C b/sched/sched_hr.C index c16acf28f7..fd76351253 100644 --- a/sched/sched_hr.C +++ b/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; }