From e7282d675f4d0080a34d1765b31b806c8ce1140b Mon Sep 17 00:00:00 2001 From: "burnus%gmx.de" <> Date: Fri, 24 Jan 2003 18:59:05 +0000 Subject: Bug 190437 - showdependencytree.cgi and showdependencygraph should use switch_to_shadow_db r=bbaetz a=justdave --- showdependencygraph.cgi | 4 ++++ showdependencytree.cgi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index c05911ee2..24d0cdfa5 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -31,6 +31,10 @@ ConnectToDatabase(); quietly_check_login(); +# Connect to the shadow database if this installation is using one to improve +# performance. +Bugzilla->instance->switch_to_shadow_db(); + use vars qw($template $vars $userid); my %seen; diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 0508f078b..e246d5c8d 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -37,6 +37,10 @@ ConnectToDatabase(); quietly_check_login(); +# Connect to the shadow database if this installation is using one to improve +# performance. +Bugzilla->instance->switch_to_shadow_db(); + # More warning suppression silliness. $::userid = $::userid; -- cgit v1.2.3-24-g4f1b