Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e8559127
Commit
e8559127
authored
Oct 04, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test by reverting MDEV-16656: DROP DATABASE crashes the Galera Cluster
parent
6c29544c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
45 deletions
+8
-45
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+2
-1
storage/innobase/fts/fts0fts.cc
storage/innobase/fts/fts0fts.cc
+3
-22
storage/xtradb/fts/fts0fts.cc
storage/xtradb/fts/fts0fts.cc
+3
-22
No files found.
mysql-test/suite/galera/disabled.def
View file @
e8559127
...
@@ -33,4 +33,5 @@ galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
...
@@ -33,4 +33,5 @@ galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
partition : MDEV-13881 galera.partition failed in buildbot with wrong result
partition : MDEV-13881 galera.partition failed in buildbot with wrong result
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion
galera_wan : MDEV-17259: Test failure on galera.galera_wan
galera_wan : MDEV-17259: Test failure on galera.galera_wan
#galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb
galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb
galera_drop_database : test
storage/innobase/fts/fts0fts.cc
View file @
e8559127
...
@@ -2762,7 +2762,7 @@ fts_cmp_set_sync_doc_id(
...
@@ -2762,7 +2762,7 @@ fts_cmp_set_sync_doc_id(
mutex_enter
(
&
cache
->
doc_id_lock
);
mutex_enter
(
&
cache
->
doc_id_lock
);
/* For each sync operation, we will add next_doc_id by 1,
/* For each sync operation, we will add next_doc_id by 1,
so to mark a sync operation */
so to mark a sync operation */
if
(
cache
->
next_doc_id
<
=
cache
->
synced_doc_id
)
{
if
(
cache
->
next_doc_id
<
cache
->
synced_doc_id
+
1
)
{
cache
->
next_doc_id
=
cache
->
synced_doc_id
+
1
;
cache
->
next_doc_id
=
cache
->
synced_doc_id
+
1
;
}
}
mutex_exit
(
&
cache
->
doc_id_lock
);
mutex_exit
(
&
cache
->
doc_id_lock
);
...
@@ -6665,6 +6665,7 @@ fts_rename_aux_tables_to_hex_format(
...
@@ -6665,6 +6665,7 @@ fts_rename_aux_tables_to_hex_format(
"All the fts index associated with the table are "
"All the fts index associated with the table are "
"marked as corrupted. Please rebuild the "
"marked as corrupted. Please rebuild the "
"index again."
,
parent_table
->
name
);
"index again."
,
parent_table
->
name
);
fts_sql_rollback
(
trx_rename
);
/* Corrupting the fts index related to parent table. */
/* Corrupting the fts index related to parent table. */
trx_t
*
trx_corrupt
;
trx_t
*
trx_corrupt
;
...
@@ -7041,27 +7042,7 @@ fts_check_and_drop_orphaned_tables(
...
@@ -7041,27 +7042,7 @@ fts_check_and_drop_orphaned_tables(
/* If the aux table is in decimal format, we should
/* If the aux table is in decimal format, we should
rename it, so push it to aux_tables_to_rename */
rename it, so push it to aux_tables_to_rename */
if
(
!
drop
&&
rename
)
{
if
(
!
drop
&&
rename
)
{
/* It is necessary to check that the table with
ib_vector_push
(
aux_tables_to_rename
,
aux_table
);
this name is missing in the vector - otherwise it
can be renamed twice: */
bool
rename_table
=
true
;
for
(
ulint
count
=
0
;
count
<
ib_vector_size
(
aux_tables_to_rename
);
count
++
)
{
fts_aux_table_t
*
rename_aux
=
static_cast
<
fts_aux_table_t
*>
(
ib_vector_get
(
aux_tables_to_rename
,
count
));
if
(
strcmp
(
rename_aux
->
name
,
aux_table
->
name
)
==
0
)
{
rename_table
=
false
;
break
;
}
}
if
(
rename_table
)
{
ib_vector_push
(
aux_tables_to_rename
,
aux_table
);
}
}
}
if
(
i
+
1
<
ib_vector_size
(
tables
))
{
if
(
i
+
1
<
ib_vector_size
(
tables
))
{
...
...
storage/xtradb/fts/fts0fts.cc
View file @
e8559127
...
@@ -2761,7 +2761,7 @@ fts_cmp_set_sync_doc_id(
...
@@ -2761,7 +2761,7 @@ fts_cmp_set_sync_doc_id(
mutex_enter
(
&
cache
->
doc_id_lock
);
mutex_enter
(
&
cache
->
doc_id_lock
);
/* For each sync operation, we will add next_doc_id by 1,
/* For each sync operation, we will add next_doc_id by 1,
so to mark a sync operation */
so to mark a sync operation */
if
(
cache
->
next_doc_id
<
=
cache
->
synced_doc_id
)
{
if
(
cache
->
next_doc_id
<
cache
->
synced_doc_id
+
1
)
{
cache
->
next_doc_id
=
cache
->
synced_doc_id
+
1
;
cache
->
next_doc_id
=
cache
->
synced_doc_id
+
1
;
}
}
mutex_exit
(
&
cache
->
doc_id_lock
);
mutex_exit
(
&
cache
->
doc_id_lock
);
...
@@ -6664,6 +6664,7 @@ fts_rename_aux_tables_to_hex_format(
...
@@ -6664,6 +6664,7 @@ fts_rename_aux_tables_to_hex_format(
"All the fts index associated with the table are "
"All the fts index associated with the table are "
"marked as corrupted. Please rebuild the "
"marked as corrupted. Please rebuild the "
"index again."
,
parent_table
->
name
);
"index again."
,
parent_table
->
name
);
fts_sql_rollback
(
trx_rename
);
/* Corrupting the fts index related to parent table. */
/* Corrupting the fts index related to parent table. */
trx_t
*
trx_corrupt
;
trx_t
*
trx_corrupt
;
...
@@ -7040,27 +7041,7 @@ fts_check_and_drop_orphaned_tables(
...
@@ -7040,27 +7041,7 @@ fts_check_and_drop_orphaned_tables(
/* If the aux table is in decimal format, we should
/* If the aux table is in decimal format, we should
rename it, so push it to aux_tables_to_rename */
rename it, so push it to aux_tables_to_rename */
if
(
!
drop
&&
rename
)
{
if
(
!
drop
&&
rename
)
{
/* It is necessary to check that the table with
ib_vector_push
(
aux_tables_to_rename
,
aux_table
);
this name is missing in the vector - otherwise it
can be renamed twice: */
bool
rename_table
=
true
;
for
(
ulint
count
=
0
;
count
<
ib_vector_size
(
aux_tables_to_rename
);
count
++
)
{
fts_aux_table_t
*
rename_aux
=
static_cast
<
fts_aux_table_t
*>
(
ib_vector_get
(
aux_tables_to_rename
,
count
));
if
(
strcmp
(
rename_aux
->
name
,
aux_table
->
name
)
==
0
)
{
rename_table
=
false
;
break
;
}
}
if
(
rename_table
)
{
ib_vector_push
(
aux_tables_to_rename
,
aux_table
);
}
}
}
if
(
i
+
1
<
ib_vector_size
(
tables
))
{
if
(
i
+
1
<
ib_vector_size
(
tables
))
{
...
...
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