diff --git a/mozilla/webtools/bugzilla/showdependencygraph.cgi b/mozilla/webtools/bugzilla/showdependencygraph.cgi index c05911ee29b..24d0cdfa573 100755 --- a/mozilla/webtools/bugzilla/showdependencygraph.cgi +++ b/mozilla/webtools/bugzilla/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/mozilla/webtools/bugzilla/showdependencytree.cgi b/mozilla/webtools/bugzilla/showdependencytree.cgi index 0508f078bf1..e246d5c8d7d 100755 --- a/mozilla/webtools/bugzilla/showdependencytree.cgi +++ b/mozilla/webtools/bugzilla/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;