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
6b1b013c
Commit
6b1b013c
authored
Apr 25, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#213 decrease the i_s_ test race window
parent
847e14f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
...l-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
+2
-0
mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
+2
-0
mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
+2
-0
No files found.
mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
View file @
6b1b013c
...
...
@@ -29,6 +29,7 @@ send insert into t values (1);
connection
default
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
info
=
'insert into t values (1)'
and
state
=
'update'
;
source
include
/
wait_condition
.
inc
;
real_sleep
1
;
# delay a little to shorten the update -> write row -> lock wait race
replace_column
1
TRX_ID
2
MYSQL_ID
;
select
*
from
information_schema
.
tokudb_locks
;
...
...
@@ -77,6 +78,7 @@ send replace into t values (1);
connection
default
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
info
=
'replace into t values (1)'
and
state
=
'update'
;
source
include
/
wait_condition
.
inc
;
real_sleep
1
;
# delay a little to shorten the update -> write row -> lock wait race
replace_column
1
TRX_ID
2
MYSQL_ID
;
select
*
from
information_schema
.
tokudb_locks
;
...
...
mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_timeout.test
View file @
6b1b013c
...
...
@@ -26,6 +26,8 @@ send insert into t values (1);
connection
default
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
info
=
'insert into t values (1)'
and
state
=
'update'
;
source
include
/
wait_condition
.
inc
;
real_sleep
1
;
# delay a little to shorten the update -> write row -> lock wait race
replace_column
1
TRX_ID
2
MYSQL_ID
;
select
*
from
information_schema
.
tokudb_locks
;
...
...
mysql-test/suite/tokudb/t/i_s_tokudb_locks_released.test
View file @
6b1b013c
...
...
@@ -32,6 +32,8 @@ send insert into t values (1);
connection
default
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
info
=
'insert into t values (1)'
and
state
=
'update'
;
source
include
/
wait_condition
.
inc
;
real_sleep
1
;
# delay a little to shorten the update -> write row -> lock wait race
replace_column
1
TRX_ID
2
MYSQL_ID
;
eval
select
*
from
information_schema
.
tokudb_locks
;
...
...
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