diff options
author | mkanat%kerio.com <> | 2005-02-18 06:57:26 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-18 06:57:26 +0100 |
commit | d3f8bf365e5b93f58497a25e07fde7ce30884f9d (patch) | |
tree | ba45ba2aa22039ecd440ca4c5c7fa421eb158456 /Bugzilla/Error.pm | |
parent | f95d1faba79c94bcf3bf936334d6bb10e03c93b2 (diff) | |
download | bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.gz bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.xz |
Bug 280503: Replace "LOCK/UNLOCK TABLES" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat,a=myk
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r-- | Bugzilla/Error.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 96017f368..e86b1c41a 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -27,6 +27,7 @@ use base qw(Exporter); @Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError); use Bugzilla::Config; +use Bugzilla::Constants; use Bugzilla::Util; use Date::Format; @@ -37,7 +38,7 @@ sub _throw_error { $vars->{error} = $error; - Bugzilla->dbh->do("UNLOCK TABLES") if $unlock_tables; + Bugzilla->dbh->bz_unlock_tables(UNLOCK_ABORT) if $unlock_tables; # If a writable data/errorlog exists, log error details there. if (-w "data/errorlog") { |