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
7fd10246
Commit
7fd10246
authored
Sep 15, 2009
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
mysql-test/include/concurrent.inc: Merge
parents
9f6c4ad8
9ec5b6f4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
70 deletions
+5
-70
mysql-test/include/concurrent.inc
mysql-test/include/concurrent.inc
+2
-0
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+2
-1
mysql-test/include/wait_for_status_var.inc.moved
mysql-test/include/wait_for_status_var.inc.moved
+0
-68
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+1
-1
No files found.
mysql-test/include/concurrent.inc
View file @
7fd10246
...
...
@@ -666,7 +666,9 @@ disconnect thread1;
--
echo
**
connection
thread2
connection
thread2
;
disconnect
thread2
;
--
source
include
/
wait_until_disconnected
.
inc
--
echo
**
connection
default
connection
default
;
drop
table
t1
;
drop
user
mysqltest
@
localhost
;
mysql-test/include/mix1.inc
View file @
7fd10246
...
...
@@ -1509,6 +1509,7 @@ DROP TABLE t1;
--
echo
# SQL_SELECT::test_quick_select
--
echo
# (reproduced only with InnoDB tables)
--
echo
#
eval
CREATE
TABLE
t1
(
c1
INT
,
c2
INT
,
c3
INT
,
KEY
(
c3
),
KEY
(
c2
,
c3
))
ENGINE
=
$engine_type
;
...
...
@@ -1538,7 +1539,7 @@ DROP TABLE t1;
eval
CREATE
TABLE
t1
(
c1
DECIMAL
(
12
,
2
),
c2
DECIMAL
(
12
,
2
),
c3
DECIMAL
(
12
,
2
),
KEY
(
c3
),
KEY
(
c2
,
c3
))
ENGINE
=
innodb
;
ENGINE
=
$engine_type
;
INSERT
INTO
t1
VALUES
(
1
,
1
,
1
),
(
1
,
1
,
1
),
(
1
,
1
,
2
),
(
1
,
1
,
1
),
(
1
,
1
,
2
);
SELECT
1
FROM
(
SELECT
COUNT
(
DISTINCT
c1
)
...
...
mysql-test/include/wait_for_status_var.inc.moved
deleted
100644 → 0
View file @
9f6c4ad8
# ==== Purpose ====
#
# Waits until a variable from SHOW STATUS has returned a specified
# value, or until a timeout is reached.
#
# ==== Usage ====
#
# let $status_var= Threads_connected;
# let $status_var_value= 1;
# --source include/wait_for_status_var.inc
#
# Parameters:
#
# $status_var, $status_var_value
# This macro will wait until the variable of SHOW STATUS
# named $status_var gets the value $status_var_value. See
# the example above.
#
# $status_type= GLOBAL|SESSION
# To specify the type (attribute) of status variable and
# run either SHOW GLOBAL STATUS or SHOW SESSION STATUS.
#
# $status_var_comparsion
# By default, this file waits until $status_var becomes equal to
# $status_var_value. If you want to wait until $status_var
# becomes *unequal* to $status_var_value, set this parameter to the
# string '!=', like this:
# let $status_var_comparsion= !=;
#
# $status_timeout
# The default timeout is 1 minute. You can change the timeout by
# setting $status_timeout. The unit is tenths of seconds.
#
if (`SELECT STRCMP('$status_type', '') * STRCMP(UPPER('$status_type'), 'SESSION') * STRCMP(UPPER('$status_type'), 'GLOBAL')`)
{
--echo **** ERROR: Unknown type of variable status_type: allowed values are: SESSION or GLOBAL ****
exit;
}
let $_status_timeout_counter= $status_timeout;
if (!$_status_timeout_counter)
{
let $_status_timeout_counter= 600;
}
let $_status_var_comparsion= $status_var_comparsion;
if (`SELECT '$_status_var_comparsion' = ''`)
{
let $_status_var_comparsion= =;
}
let $_show_status_value= query_get_value("SHOW $status_type STATUS LIKE '$status_var'", Value, 1);
while (`SELECT NOT('$_show_status_value' $_status_var_comparsion '$status_var_value')`)
{
if (!$_status_timeout_counter)
{
--echo **** ERROR: failed while waiting for $status_type $status_var $_status_var_comparison $status_var_value ****
--echo Note: the following output may have changed since the failure was detected
--echo **** Showing STATUS, PROCESSLIST ****
eval SHOW $status_type STATUS LIKE '$status_var';
SHOW PROCESSLIST;
exit;
}
dec $_status_timeout_counter;
sleep 0.1;
let $_show_status_value= query_get_value("SHOW $status_type STATUS LIKE '$status_var'", Value, 1);
}
mysql-test/r/innodb_mysql.result
View file @
7fd10246
...
...
@@ -1746,7 +1746,7 @@ id select_type table type possible_keys key key_len ref rows Extra
DROP TABLE t1;
CREATE TABLE t1 (c1 DECIMAL(12,2), c2 DECIMAL(12,2), c3 DECIMAL(12,2),
KEY (c3), KEY (c2, c3))
ENGINE=
innodb
;
ENGINE=
InnoDB
;
INSERT INTO t1 VALUES (1,1,1), (1,1,1), (1,1,2), (1,1,1), (1,1,2);
SELECT 1 FROM (SELECT COUNT(DISTINCT c1)
FROM t1 WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x;
...
...
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