summaryrefslogtreecommitdiffstats
path: root/Bugzilla/JobQueue.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-11-22 23:24:07 +0100
committerlpsolit%gmail.com <>2009-11-22 23:24:07 +0100
commit86a245f0ab0d6f331f7bc911e62994a105e78693 (patch)
tree23dae272419ab9e61b66bb19c32a29165d0950fc /Bugzilla/JobQueue.pm
parent0dda0671f523bc36c492095a9962f8f4fe6f0c1e (diff)
downloadbugzilla-86a245f0ab0d6f331f7bc911e62994a105e78693.tar.gz
bugzilla-86a245f0ab0d6f331f7bc911e62994a105e78693.tar.xz
Bug 530270: Whining fails if mail queueing is enabled - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'Bugzilla/JobQueue.pm')
-rw-r--r--Bugzilla/JobQueue.pm4
1 files changed, 3 insertions, 1 deletions
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_',