diff options
author | burnus%gmx.de <> | 2003-01-24 19:59:05 +0100 |
---|---|---|
committer | burnus%gmx.de <> | 2003-01-24 19:59:05 +0100 |
commit | e7282d675f4d0080a34d1765b31b806c8ce1140b (patch) | |
tree | 9987e0e323e3832a9fff10fe9e4b4f5e6a480be9 | |
parent | 8f0598f469c102588e082ea88f8fc33f660d6b1d (diff) | |
download | bugzilla-e7282d675f4d0080a34d1765b31b806c8ce1140b.tar.gz bugzilla-e7282d675f4d0080a34d1765b31b806c8ce1140b.tar.xz |
Bug 190437 - showdependencytree.cgi and showdependencygraph should use switch_to_shadow_db
r=bbaetz
a=justdave
-rwxr-xr-x | showdependencygraph.cgi | 4 | ||||
-rwxr-xr-x | showdependencytree.cgi | 4 |
2 files changed, 8 insertions, 0 deletions
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; |