From 9e98f299eadda41bd5201ed0a330727d794c1ebd Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Sat, 9 Nov 2002 21:50:08 +0000 Subject: Fix for bug 179177: avoid database errors when inserting bug by locking all tables i need to access r=bbaetz a=justdave --- post_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 5bc94ca73..4f4063f04 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -374,7 +374,9 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) { # Lock tables before inserting records for the new bug into the database # if we are using a shadow database to prevent shadow database corruption # when two bugs get created at the same time. -SendSQL("LOCK TABLES bugs WRITE, bug_group_map WRITE, longdescs WRITE, cc WRITE, profiles READ") if Param("shadowdb"); +SendSQL("LOCK TABLES bugs WRITE, bug_group_map WRITE, longdescs WRITE, " . + "cc WRITE, keywords WRITE, dependencies WRITE, bugs_activity WRITE, " . + "fielddefs READ, profiles READ") if Param("shadowdb"); # Add the bug report to the DB. SendSQL($sql); -- cgit v1.2.3-24-g4f1b