From de0bf5ad8310b883b3a681eefb24b6d52bc39ff9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 18 May 2009 16:58:11 +0000 Subject: [PATCH] - web: use read-only replica when possible svn path=/trunk/boinc/; revision=18146 --- checkin_notes | 9 +++++++++ html/user/pending.php | 2 ++ html/user/results.php | 2 ++ html/user/show_host_detail.php | 2 ++ html/user/workunit.php | 2 ++ 5 files changed, 17 insertions(+) diff --git a/checkin_notes b/checkin_notes index 34c1ae4f26..053d33a3d4 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4625,3 +4625,12 @@ David 17 May 2009 db_update.php py/Boinc setup_project.py + +David 17 May 2009 + - web: use read-only replica when possible + + html/user/ + pending.php + results.php + show_host_detail.php + workunit.php diff --git a/html/user/pending.php b/html/user/pending.php index c304f6c095..65204f7b0d 100644 --- a/html/user/pending.php +++ b/html/user/pending.php @@ -22,6 +22,8 @@ require_once("../inc/util.inc"); require_once("../inc/boinc_db.inc"); require_once("../inc/xml.inc"); +BoincDb::get(true); + $config = get_config(); if (!parse_bool($config, "show_results")) { error_page("This feature is turned off temporarily"); diff --git a/html/user/results.php b/html/user/results.php index 514b0a38f3..c5601e0b45 100644 --- a/html/user/results.php +++ b/html/user/results.php @@ -27,6 +27,8 @@ if (!parse_bool($config, "show_results")) { error_page(tra("This feature is turned off temporarily")); } +BoincDb::get(true); + $results_per_page = 20; $hostid = get_int("hostid", true); diff --git a/html/user/show_host_detail.php b/html/user/show_host_detail.php index ae80f7d786..d7f4220401 100644 --- a/html/user/show_host_detail.php +++ b/html/user/show_host_detail.php @@ -21,6 +21,8 @@ require_once("../inc/util.inc"); require_once("../inc/user.inc"); require_once("../inc/host.inc"); +BoincDb::get(true); + $hostid = get_int("hostid"); $ipprivate = get_str("ipprivate", true); $host = BoincHost::lookup_id($hostid); diff --git a/html/user/workunit.php b/html/user/workunit.php index 2c1476bc3b..30eca42186 100644 --- a/html/user/workunit.php +++ b/html/user/workunit.php @@ -22,6 +22,8 @@ require_once("../inc/util.inc"); require_once("../inc/boinc_db.inc"); require_once("../inc/result.inc"); +BoincDb::get(true); + $wuid = get_int("wuid"); $wu = BoincWorkunit::lookup_id($wuid); if (!$wu) {