Commit bac12bd6 authored by dmose%mozilla.org's avatar dmose%mozilla.org

The code was trying to use ConnectToDatabase to connect to the shadow db after…

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
parent 9d772bd4
...@@ -57,6 +57,7 @@ my %reports = ...@@ -57,6 +57,7 @@ my %reports =
# If we're using bug groups for products, we should apply those restrictions # 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. # to viewing reports, as well. Time to check the login in that case.
ConnectToDatabase(1);
quietly_check_login(); quietly_check_login();
print "Content-type: text/html\n"; print "Content-type: text/html\n";
...@@ -74,7 +75,6 @@ else ...@@ -74,7 +75,6 @@ else
print("<html><head><title>Bug Reports</title></head><body bgcolor=\"#FFFFFF\">"); print("<html><head><title>Bug Reports</title></head><body bgcolor=\"#FFFFFF\">");
} }
ConnectToDatabase(1);
GetVersionTable(); GetVersionTable();
# If the usebuggroups parameter is set, we don't want to list all products. # If the usebuggroups parameter is set, we don't want to list all products.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment