From 53aa10570a4d7bf044016fcb4080d2a9e747fa2a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 6 Nov 2009 23:31:26 +0000 Subject: [PATCH] - feeder: fix crashing bug svn path=/branches/server_stable/; revision=19508 --- checkin_notes | 7 +++++++ db/boinc_db.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index a1134b535b..30944e1d9a 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8889,3 +8889,10 @@ Rom 4 Nov 2009 client cs_platforms.cpp + +David 6 Nov 2009 + - feeder: fix crashing bug + + db/ + boinc_db.cpp + diff --git a/db/boinc_db.cpp b/db/boinc_db.cpp index f751d62d3f..606f9f40d6 100644 --- a/db/boinc_db.cpp +++ b/db/boinc_db.cpp @@ -1510,7 +1510,7 @@ int DB_WORK_ITEM::enumerate_all( // (historical reasons) // sprintf(query, - "select high_priority r1.id, r1.priority, workunit.* from result r1 force index(ind_res_st), workunit force index(primary)" + "select high_priority r1.id, r1.priority, r1.server_state, r1.report_deadline, workunit.* from result r1 force index(ind_res_st), workunit force index(primary)" " where r1.server_state=%d and r1.workunitid=workunit.id and r1.id>%d " " %s " "limit %d",