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
1db60b74
Commit
1db60b74
authored
Jan 30, 2019
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 981487 - change bugs_fulltext from myisam to innodb
parent
7f3a749d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
Bug.pm
Bugzilla/Bug.pm
+4
-11
Mysql.pm
Bugzilla/DB/Schema/Mysql.pm
+1
-1
No files found.
Bugzilla/Bug.pm
View file @
1db60b74
...
...
@@ -838,13 +838,10 @@ sub create {
Bugzilla::Hook::
process
(
'bug_end_of_create'
,
{
bug
=>
$bug
,
timestamp
=>
$timestamp
,});
$dbh
->
bz_commit_transaction
();
# Because MySQL doesn't support transactions on the fulltext table,
# we do this after we've committed the transaction. That way we're
# sure we're inserting a good Bug ID.
$bug
->
_sync_fulltext
(
new_bug
=>
1
);
$dbh
->
bz_commit_transaction
();
return
$bug
;
}
...
...
@@ -1211,17 +1208,13 @@ sub update {
delete
$user
->
{
bugs_ignored
}
if
$bug_ignored_changed
;
}
$dbh
->
bz_commit_transaction
();
# The only problem with this here is that update() is often called
# in the middle of a transaction, and if that transaction is rolled
# back, this change will *not* be rolled back. As we expect rollbacks
# to be extremely rare, that is OK for us.
$self
->
_sync_fulltext
(
update_short_desc
=>
$changes
->
{
short_desc
},
update_comments
=>
$self
->
{
added_comments
}
||
$self
->
{
comment_isprivate
}
);
$dbh
->
bz_commit_transaction
();
# Remove obsolete internal variables.
delete
$self
->
{
'_old_assigned_to'
};
delete
$self
->
{
'_old_qa_contact'
};
...
...
Bugzilla/DB/Schema/Mysql.pm
View file @
1db60b74
...
...
@@ -85,7 +85,7 @@ use constant REVERSE_MAPPING => {
# as in their db-specific version, so no reverse mapping is needed.
};
use
constant
MYISAM_TABLES
=>
qw(
bugs_fulltext
)
;
use
constant
MYISAM_TABLES
=>
qw()
;
#------------------------------------------------------------------------------
sub
_initialize
{
...
...
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