Commit 73e08709 authored by terry%mozilla.org's avatar terry%mozilla.org

Fixed some functions in buglist.cgi that won't work if we're hooked up

to the shadow database.
parent f229fcf5
......@@ -49,9 +49,7 @@ sub sillyness {
my $serverpush = 0;
my $useshadow = Param("queryagainstshadowdb");
ConnectToDatabase($useshadow);
ConnectToDatabase();
# print "Content-type: text/plain\n\n"; # Handy for debugging.
# $::FORM{'debug'} = 1;
......@@ -875,6 +873,8 @@ query. You will have to start over at the <A HREF="query.cgi">query page</A>.
ReconnectToShadowDatabase();
my $query = GenerateSQL(\@fields, undef, undef, $::buffer);
......
......@@ -89,6 +89,13 @@ sub ConnectToDatabase {
}
}
sub ReconnectToShadowDatabase {
if (Param("shadowdb")) {
SendSQL("USE " . Param("shadowdb"));
$::dbwritesallowed = 0;
}
}
my $dosqllog = (-e "data/sqllog") && (-w "data/sqllog");
sub SqlLog {
......
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