]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 179177: avoid database errors when inserting bug by locking all tables...
authormyk%mozilla.org <>
Sat, 9 Nov 2002 21:50:08 +0000 (21:50 +0000)
committermyk%mozilla.org <>
Sat, 9 Nov 2002 21:50:08 +0000 (21:50 +0000)
r=bbaetz
a=justdave

post_bug.cgi

index 5bc94ca73404b2aa0ca0cea873006dddb786497e..4f4063f0458b5644c4956da956cfd23ce2284564 100755 (executable)
@@ -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);