summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-11-09 22:50:08 +0100
committermyk%mozilla.org <>2002-11-09 22:50:08 +0100
commit9e98f299eadda41bd5201ed0a330727d794c1ebd (patch)
tree9a27e4cc904ff66b1e8090f6633d8cc9de4d3323 /post_bug.cgi
parent120f86a1ba4e77c05daa698f0fbee05b7b93bd7b (diff)
downloadbugzilla-9e98f299eadda41bd5201ed0a330727d794c1ebd.tar.gz
bugzilla-9e98f299eadda41bd5201ed0a330727d794c1ebd.tar.xz
Fix for bug 179177: avoid database errors when inserting bug by locking all tables i need to access
r=bbaetz a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 3 insertions, 1 deletions
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);