From f239587bdbc3c450399ebd452aae7aa8526c4577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Tue, 30 Jun 2009 18:00:58 +0000 Subject: [PATCH] Sched: config option not to store stderr_out if exit_status==0 (to save on DB size). With help from Nicolas Alvarez. svn path=/trunk/boinc/; revision=18528 --- checkin_notes | 9 +++++++++ sched/sched_config.cpp | 1 + sched/sched_config.h | 5 +++-- sched/sched_result.cpp | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 320c131f61..d860ebaf21 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6102,3 +6102,12 @@ Charlie 29 June 2009 clientgui/ ProjectListCtrl.cpp, .h + +Rytis 30 June 2009 + - Sched: config option not to store stderr_out if exit_status==0 (to + save on DB size). With help from Nicolas Alvarez. + + sched/ + sched_config.cpp + sched_config.h + sched_result.cpp diff --git a/sched/sched_config.cpp b/sched/sched_config.cpp index 4317070302..5292f0aac8 100644 --- a/sched/sched_config.cpp +++ b/sched/sched_config.cpp @@ -212,6 +212,7 @@ int SCHED_CONFIG::parse(FILE* f) { if (xp.parse_bool(tag, "no_vista_sandbox", no_vista_sandbox)) continue; if (xp.parse_bool(tag, "ignore_dcf", ignore_dcf)) continue; if (xp.parse_int(tag, "report_max", report_max)) continue; + if (xp.parse_bool(tag, "dont_store_success_stderr", dont_store_success_stderr)) continue; if (xp.parse_bool(tag, "debug_version_select", debug_version_select)) continue; if (xp.parse_bool(tag, "debug_assignment", debug_assignment)) continue; diff --git a/sched/sched_config.h b/sched/sched_config.h index 1cf5d029a5..3f80ca1482 100644 --- a/sched/sched_config.h +++ b/sched/sched_config.h @@ -100,8 +100,8 @@ public: // will be sent to reliable hosts double reliable_reduced_delay_bound; // Reduce the delay bounds for reliable hosts by this percent - int granted_credit_ramp_up; - double granted_credit_weight; + int granted_credit_ramp_up; + double granted_credit_weight; bool distinct_beta_apps; // allow users to select beta apps independently bool workload_sim; @@ -132,6 +132,7 @@ public: bool no_vista_sandbox; bool ignore_dcf; int report_max; + bool dont_store_success_stderr; // log flags // diff --git a/sched/sched_result.cpp b/sched/sched_result.cpp index 924cdab0c9..3ea3363338 100644 --- a/sched/sched_result.cpp +++ b/sched/sched_result.cpp @@ -303,6 +303,10 @@ int handle_results() { ); } got_good_result(); + + if (config.dont_store_success_stderr) { + strcpy(srip->stderr_out, ""); + } } else { if (config.debug_handle_results) { log_messages.printf(MSG_NORMAL,