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
99919582
Commit
99919582
authored
Apr 24, 2002
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 124587: Lock bugs table before inserting new bug.
Patch by Myk Melez <myk@mozilla.org> r=bbaetz,justdave
parent
d53b0947
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
post_bug.cgi
post_bug.cgi
+7
-0
No files found.
post_bug.cgi
View file @
99919582
...
...
@@ -237,6 +237,11 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) {
$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"
);
# Add the bug report to the DB.
SendSQL
(
$sql
);
...
...
@@ -266,6 +271,8 @@ if (defined $::FORM{'cc'}) {
}
}
SendSQL
(
"UNLOCK TABLES"
)
if
Param
(
"shadowdb"
);
# Assemble the -force* strings so this counts as "Added to this capacity"
my
@ARGLIST
=
();
if
(
@cc
)
{
...
...
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