Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
9e98f299
Commit
9e98f299
authored
Nov 09, 2002
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 179177: avoid database errors when inserting bug by locking all tables i need to access
r=bbaetz a=justdave
parent
120f86a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
post_bug.cgi
post_bug.cgi
+3
-1
No files found.
post_bug.cgi
View file @
9e98f299
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment