From 86a245f0ab0d6f331f7bc911e62994a105e78693 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 22 Nov 2009 22:24:07 +0000 Subject: Bug 530270: Whining fails if mail queueing is enabled - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/JobQueue.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/JobQueue.pm') diff --git a/Bugzilla/JobQueue.pm b/Bugzilla/JobQueue.pm index 9e7172e2b..1046cf2c3 100644 --- a/Bugzilla/JobQueue.pm +++ b/Bugzilla/JobQueue.pm @@ -43,9 +43,11 @@ sub new { } my $lc = Bugzilla->localconfig; + # We need to use the main DB as TheSchwartz module is going + # to write to it. my $self = $class->SUPER::new( databases => [{ - dsn => Bugzilla->dbh->{private_bz_dsn}, + dsn => Bugzilla->dbh_main->{private_bz_dsn}, user => $lc->{db_user}, pass => $lc->{db_pass}, prefix => 'ts_', -- cgit v1.2.3-24-g4f1b