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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
028ce66c
Commit
028ce66c
authored
Apr 07, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify test case
parent
ccc92383
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
mysql-test/r/partition_debug_sync.result
mysql-test/r/partition_debug_sync.result
+2
-5
mysql-test/t/partition_debug_sync.test
mysql-test/t/partition_debug_sync.test
+4
-7
sql/sql_table.cc
sql/sql_table.cc
+0
-2
No files found.
mysql-test/r/partition_debug_sync.result
View file @
028ce66c
...
@@ -42,21 +42,18 @@ CREATE TABLE t2
...
@@ -42,21 +42,18 @@ CREATE TABLE t2
b INTEGER NOT NULL,
b INTEGER NOT NULL,
KEY (b))
KEY (b))
ENGINE = MYISAM
ENGINE = MYISAM
/*!50100 PARTITION BY RANGE (a)
PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (2),
(PARTITION p0 VALUES LESS THAN (2),
PARTITION p1 VALUES LESS THAN (20),
PARTITION p1 VALUES LESS THAN (20),
PARTITION p2 VALUES LESS THAN (100),
PARTITION p2 VALUES LESS THAN (100),
PARTITION p3 VALUES LESS THAN MAXVALUE
) */
;
PARTITION p3 VALUES LESS THAN MAXVALUE
)
;
SET DEBUG_SYNC= 'alter_table_before_open_tables SIGNAL removing_partitions WAIT_FOR waiting_for_alter';
SET DEBUG_SYNC= 'alter_table_before_open_tables SIGNAL removing_partitions WAIT_FOR waiting_for_alter';
SET DEBUG_SYNC= 'alter_table_before_rename_result_table WAIT_FOR delete_done';
SET DEBUG_SYNC= 'alter_table_before_rename_result_table WAIT_FOR delete_done';
ALTER TABLE t2 REMOVE PARTITIONING;
ALTER TABLE t2 REMOVE PARTITIONING;
# Con default
# Con default
SET SESSION debug_dbug= "+d,sleep_before_no_locks_delete_table";
SET DEBUG_SYNC= 'now WAIT_FOR removing_partitions';
SET DEBUG_SYNC= 'now WAIT_FOR removing_partitions';
SET DEBUG_SYNC= 'rm_table_no_locks_before_delete_table SIGNAL waiting_for_alter';
SET DEBUG_SYNC= 'rm_table_no_locks_before_delete_table SIGNAL waiting_for_alter';
SET DEBUG_SYNC= 'rm_table_no_locks_before_binlog SIGNAL delete_done';
SET DEBUG_SYNC= 'rm_table_no_locks_before_binlog SIGNAL delete_done';
DROP TABLE IF EXISTS t2;
DROP TABLE IF EXISTS t2;
SET SESSION debug_dbug= "-d,sleep_before_no_locks_delete_table";
# Con 1
# Con 1
ERROR 42S02: Table 'test.t2' doesn't exist
ERROR 42S02: Table 'test.t2' doesn't exist
SET DEBUG_SYNC= 'RESET';
SET DEBUG_SYNC= 'RESET';
...
...
mysql-test/t/partition_debug_sync.test
View file @
028ce66c
...
@@ -60,22 +60,19 @@ CREATE TABLE t2
...
@@ -60,22 +60,19 @@ CREATE TABLE t2
b
INTEGER
NOT
NULL
,
b
INTEGER
NOT
NULL
,
KEY
(
b
))
KEY
(
b
))
ENGINE
=
MYISAM
ENGINE
=
MYISAM
/*!50100 PARTITION BY RANGE (a)
PARTITION
BY
RANGE
(
a
)
(
PARTITION
p0
VALUES
LESS
THAN
(
2
),
(PARTITION p0 VALUES LESS THAN (2),
PARTITION
p1
VALUES
LESS
THAN
(
20
),
PARTITION
p1
VALUES
LESS
THAN
(
20
),
PARTITION
p2
VALUES
LESS
THAN
(
100
),
PARTITION
p2
VALUES
LESS
THAN
(
100
),
PARTITION p3 VALUES LESS THAN MAXVALUE ) */
;
PARTITION
p3
VALUES
LESS
THAN
MAXVALUE
)
;
SET
DEBUG_SYNC
=
'alter_table_before_open_tables SIGNAL removing_partitions WAIT_FOR waiting_for_alter'
;
SET
DEBUG_SYNC
=
'alter_table_before_open_tables SIGNAL removing_partitions WAIT_FOR waiting_for_alter'
;
SET
DEBUG_SYNC
=
'alter_table_before_rename_result_table WAIT_FOR delete_done'
;
SET
DEBUG_SYNC
=
'alter_table_before_rename_result_table WAIT_FOR delete_done'
;
--
send
ALTER
TABLE
t2
REMOVE
PARTITIONING
--
send
ALTER
TABLE
t2
REMOVE
PARTITIONING
connection
default
;
connection
default
;
--
echo
# Con default
--
echo
# Con default
SET
SESSION
debug_dbug
=
"+d,sleep_before_no_locks_delete_table"
;
SET
DEBUG_SYNC
=
'now WAIT_FOR removing_partitions'
;
SET
DEBUG_SYNC
=
'now WAIT_FOR removing_partitions'
;
SET
DEBUG_SYNC
=
'rm_table_no_locks_before_delete_table SIGNAL waiting_for_alter'
;
SET
DEBUG_SYNC
=
'rm_table_no_locks_before_delete_table SIGNAL waiting_for_alter'
;
SET
DEBUG_SYNC
=
'rm_table_no_locks_before_binlog SIGNAL delete_done'
;
SET
DEBUG_SYNC
=
'rm_table_no_locks_before_binlog SIGNAL delete_done'
;
DROP
TABLE
IF
EXISTS
t2
;
DROP
TABLE
IF
EXISTS
t2
;
SET
SESSION
debug_dbug
=
"-d,sleep_before_no_locks_delete_table"
;
--
echo
# Con 1
--
echo
# Con 1
connection
con1
;
connection
con1
;
--
error
ER_NO_SUCH_TABLE
--
error
ER_NO_SUCH_TABLE
...
...
sql/sql_table.cc
View file @
028ce66c
...
@@ -2278,8 +2278,6 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
...
@@ -2278,8 +2278,6 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
}
}
}
}
DEBUG_SYNC
(
thd
,
"rm_table_no_locks_before_delete_table"
);
DEBUG_SYNC
(
thd
,
"rm_table_no_locks_before_delete_table"
);
DBUG_EXECUTE_IF
(
"sleep_before_no_locks_delete_table"
,
my_sleep
(
100000
););
error
=
0
;
error
=
0
;
if
(
drop_temporary
||
if
(
drop_temporary
||
((
access
(
path
,
F_OK
)
&&
((
access
(
path
,
F_OK
)
&&
...
...
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