diff --git a/db/boinc_db.C b/db/boinc_db.C index 2672ef9958..08a148d377 100644 --- a/db/boinc_db.C +++ b/db/boinc_db.C @@ -68,7 +68,7 @@ DB_MSG_FROM_HOST::DB_MSG_FROM_HOST() : DB_BASE(boinc_db, "msg_from_host"){} DB_MSG_TO_HOST::DB_MSG_TO_HOST() : DB_BASE(boinc_db, "msg_to_host"){} DB_TRANSITIONER_ITEM_SET::DB_TRANSITIONER_ITEM_SET() : DB_BASE_SPECIAL(boinc_db){} DB_WORK_ITEM::DB_WORK_ITEM() : DB_BASE_SPECIAL(boinc_db){} -DB_SCHED_RESULT_ITEM_SET::DB_SCHED_RESULT_ITEM_SET() : DB_BASE_SPECIAL(boinc_db){ results.clear(); } +DB_SCHED_RESULT_ITEM_SET::DB_SCHED_RESULT_ITEM_SET() : DB_BASE_SPECIAL(boinc_db), results.clear() {} int DB_PLATFORM::get_id() {return id;} int DB_CORE_VERSION::get_id() {return id;} diff --git a/db/boinc_db.h b/db/boinc_db.h index 6d7368259b..db3cd4b81d 100755 --- a/db/boinc_db.h +++ b/db/boinc_db.h @@ -648,7 +648,7 @@ struct SCHED_RESULT_ITEM { class DB_SCHED_RESULT_ITEM_SET : public DB_BASE_SPECIAL { public: DB_SCHED_RESULT_ITEM_SET(); - std::vector& results; + std::vector results; int add_result(char* result_name); diff --git a/sched/handle_request.C b/sched/handle_request.C index 05a52e5c13..34becc839e 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -328,7 +328,8 @@ int handle_results( if (retval) { log_messages.printf( SCHED_MSG_LOG::CRITICAL, - "[HOST#%d] Batch query failed\n" + "[HOST#%d] Batch query failed\n", + reply.host.id ); } }