diff options
author | bbaetz%student.usyd.edu.au <> | 2002-11-19 16:19:29 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-11-19 16:19:29 +0100 |
commit | e1f21df3faf10cafc492e9bd7a9329f7f96e95ca (patch) | |
tree | 24ee7967e094d165bf4ff77a46e4afe4e7a56034 /Bugzilla | |
parent | 1f71df249d99f8392dbce1b47a05fdd03bec48b1 (diff) | |
download | bugzilla-e1f21df3faf10cafc492e9bd7a9329f7f96e95ca.tar.gz bugzilla-e1f21df3faf10cafc492e9bd7a9329f7f96e95ca.tar.xz |
Bug 124589 - support database replication
r=myk, a=justdave
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 8 | ||||
-rw-r--r-- | Bugzilla/Config.pm | 6 |
2 files changed, 5 insertions, 9 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3dadd3cd5..11eb43af1 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -96,14 +96,6 @@ sub initBug { } } - - &::ConnectToDatabase(); - &::GetVersionTable(); - - # this verification should already have been done by caller - # my $loginok = quietly_check_login(); - - $self->{'whoid'} = $user_id; my $query = " diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 534367ce0..25792d476 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -138,7 +138,11 @@ sub SetParam { my $entry = $params{$name}; # sanity check the value - if (exists $entry->{'checker'}) { + + # XXX - This runs the checks. Which would be good, except that + # check_shadowdb creates the database as a sideeffect, and so the + # checker fails the second time arround... + if ($name ne 'shadowdb' && exists $entry->{'checker'}) { my $err = $entry->{'checker'}->($value, $entry); die "Param $name is not valid: $err" unless $err eq ''; } |