aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmose%mozilla.org <>2000-10-25 09:34:13 +0000
committerdmose%mozilla.org <>2000-10-25 09:34:13 +0000
commitbac12bd6b225e35cbae8ed306a466e576ce52e66 (patch)
tree572c00dd96471632468d887de35a71abf2821384 /reports.cgi
parentwhen invoked with -syncall, have the GET_LOCK time out after 45 minutes rathe... (diff)
downloadbugzilla-bac12bd6b225e35cbae8ed306a466e576ce52e66.tar.gz
bugzilla-bac12bd6b225e35cbae8ed306a466e576ce52e66.tar.bz2
bugzilla-bac12bd6b225e35cbae8ed306a466e576ce52e66.zip
The code was trying to use ConnectToDatabase to connect to the shadow db after quietly_check_login() had already called it for us under the covers _without_ the useshadowdb parameter. So reports were being run against the main database, triggering UI stalls. r=endico@mozilla.org
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi
index dd081ad12..b48ad7133 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -57,6 +57,7 @@ my %reports =
# If we're using bug groups for products, we should apply those restrictions
# to viewing reports, as well. Time to check the login in that case.
+ConnectToDatabase(1);
quietly_check_login();
print "Content-type: text/html\n";
@@ -74,7 +75,6 @@ else
print("<html><head><title>Bug Reports</title></head><body bgcolor=\"#FFFFFF\">");
}
-ConnectToDatabase(1);
GetVersionTable();
# If the usebuggroups parameter is set, we don't want to list all products.