Fix for bug 150792: Locks profiles table so adding a CC while creating a bug doesn't fail.

2xr=bbaetz
This commit is contained in:
myk%mozilla.org 2002-06-17 15:54:50 +00:00
parent ae2d20be15
commit b38ebe63a2

View File

@ -243,7 +243,7 @@ $sql .= ") & $::usergroupset)\n";
# 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, longdescs WRITE, cc WRITE") if Param("shadowdb");
SendSQL("LOCK TABLES bugs WRITE, longdescs WRITE, cc WRITE, profiles READ") if Param("shadowdb");
# Add the bug report to the DB.
SendSQL($sql);