From: burnus%gmx.de <> Date: Fri, 24 Jan 2003 18:59:05 +0000 (+0000) Subject: Bug 190437 - showdependencytree.cgi and showdependencygraph should use switch_to_shad... X-Git-Tag: bugzilla-2.17.4~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7282d675f4d0080a34d1765b31b806c8ce1140b;p=thirdparty%2Fbugzilla.git Bug 190437 - showdependencytree.cgi and showdependencygraph should use switch_to_shadow_db r=bbaetz a=justdave --- diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index c05911ee29..24d0cdfa57 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 0508f078bf..e246d5c8d7 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;