diff options
author | lpsolit%gmail.com <> | 2005-11-14 02:50:47 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-11-14 02:50:47 +0100 |
commit | 03352ccf9bdb6b816e0650f8f76e008a17df87c0 (patch) | |
tree | 8a641b8c42abdd70b94bb3a9c87fe9a0788cb6be /collectstats.pl | |
parent | e4fa51953ec018c733040ccf9a478b2e8aac0bac (diff) | |
download | bugzilla-03352ccf9bdb6b816e0650f8f76e008a17df87c0.tar.gz bugzilla-03352ccf9bdb6b816e0650f8f76e008a17df87c0.tar.xz |
Bug 313695: buglist.cgi and some other scripts do not use the shadow DB anymore - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/collectstats.pl b/collectstats.pl index a12c85586..e087c28d0 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -458,10 +458,8 @@ sub CollectSeriesData { # We save a copy of the main $dbh and then switch to the shadow and get # that one too. Remember, these may be the same. - Bugzilla->switch_to_main_db(); - my $dbh = Bugzilla->dbh; - Bugzilla->switch_to_shadow_db(); - my $shadow_dbh = Bugzilla->dbh; + my $dbh = Bugzilla->switch_to_main_db(); + my $shadow_dbh = Bugzilla->switch_to_shadow_db(); my $serieses = $dbh->selectall_hashref("SELECT series_id, query, creator " . "FROM series " . |