summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-11-15 05:56:31 +0100
committerlpsolit%gmail.com <>2007-11-15 05:56:31 +0100
commit0dadaed4ffb582ccfbc2356e7715007819d1cea2 (patch)
treea44cf83a9670d0a5e2ebc63a1dcc27a012924fc1 /query.cgi
parentec38a93e110be22f7316871994f91dc53712bcd2 (diff)
downloadbugzilla-0dadaed4ffb582ccfbc2356e7715007819d1cea2.tar.gz
bugzilla-0dadaed4ffb582ccfbc2356e7715007819d1cea2.tar.xz
Bug 403824: Replace table locks in most Bugzilla files with transactions - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index aaabc1529..622c1588c 100755
--- a/query.cgi
+++ b/query.cgi
@@ -70,7 +70,7 @@ if ($userid) {
# If the query name contains invalid characters, don't import.
$name =~ /[<>&]/ && next;
trick_taint($name);
- $dbh->bz_lock_tables('namedqueries WRITE');
+ $dbh->bz_start_transaction();
my $query = $dbh->selectrow_array(
"SELECT query FROM namedqueries " .
"WHERE userid = ? AND name = ?",
@@ -80,7 +80,7 @@ if ($userid) {
"(userid, name, query) VALUES " .
"(?, ?, ?)", undef, ($userid, $name, $value));
}
- $dbh->bz_unlock_tables();
+ $dbh->bz_commit_transaction();
}
$cgi->remove_cookie($cookiename);
}