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
8b3b6dc3
Commit
8b3b6dc3
authored
Nov 21, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test how MDL blocks InnoDB purge
it must, because purge opens a table that might be being altered right now
parent
1cae1af6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
+19
-0
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
+21
-1
No files found.
mysql-test/suite/gcol/r/innodb_virtual_debug_purge.result
View file @
8b3b6dc3
...
...
@@ -138,4 +138,23 @@ a b c
6 6 12
8 8 16
DROP TABLE t0, t1;
create table t (a blob, b blob, c blob as (concat(a,b)), h varchar(10), index (c(100)));
insert t(a,b,h) values (repeat('g', 16000), repeat('x', 16000), "kk");
insert t(a,b,h) values (repeat('a', 16000), repeat('b', 16000), "mm");
set global innodb_purge_stop_now = 1;
set global debug_dbug="+d,ib_purge_virtual_index_callback";
update t set a = repeat('m', 16000) where a like "aaa%";
connect con1, localhost, root;
lock table t write;
connection default;
set global innodb_purge_run_now=1;
select variable_value>1 from information_schema.global_status where variable_name='innodb_purge_trx_id_age';
variable_value>1
1
disconnect con1;
select variable_value>1 from information_schema.global_status where variable_name='innodb_purge_trx_id_age';
variable_value>1
0
set global debug_dbug=@old_dbug;
drop table t;
set debug_sync=reset;
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
View file @
8b3b6dc3
...
...
@@ -169,6 +169,26 @@ SELECT * FROM t1;
DROP
TABLE
t0
,
t1
;
--
source
include
/
wait_until_count_sessions
.
inc
#
# test MDLs with purge
#
create
table
t
(
a
blob
,
b
blob
,
c
blob
as
(
concat
(
a
,
b
)),
h
varchar
(
10
),
index
(
c
(
100
)));
insert
t
(
a
,
b
,
h
)
values
(
repeat
(
'g'
,
16000
),
repeat
(
'x'
,
16000
),
"kk"
);
insert
t
(
a
,
b
,
h
)
values
(
repeat
(
'a'
,
16000
),
repeat
(
'b'
,
16000
),
"mm"
);
set
global
innodb_purge_stop_now
=
1
;
set
global
debug_dbug
=
"+d,ib_purge_virtual_index_callback"
;
update
t
set
a
=
repeat
(
'm'
,
16000
)
where
a
like
"aaa%"
;
connect
(
con1
,
localhost
,
root
);
lock
table
t
write
;
connection
default
;
set
global
innodb_purge_run_now
=
1
;
sleep
3
;
select
variable_value
>
1
from
information_schema
.
global_status
where
variable_name
=
'innodb_purge_trx_id_age'
;
disconnect
con1
;
sleep
3
;
select
variable_value
>
1
from
information_schema
.
global_status
where
variable_name
=
'innodb_purge_trx_id_age'
;
set
global
debug_dbug
=@
old_dbug
;
drop
table
t
;
--
source
include
/
wait_until_count_sessions
.
inc
set
debug_sync
=
reset
;
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