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
9d3e2a7c
Commit
9d3e2a7c
authored
May 08, 2019
by
Jan Lindström
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
27232a9f
3e5526b0
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
107 additions
and
60 deletions
+107
-60
mysql-test/suite/galera/r/galera_parallel_autoinc_largetrx.result
...st/suite/galera/r/galera_parallel_autoinc_largetrx.result
+3
-5
mysql-test/suite/galera/r/galera_parallel_autoinc_manytrx.result
...est/suite/galera/r/galera_parallel_autoinc_manytrx.result
+23
-10
mysql-test/suite/galera/t/galera_parallel_autoinc_largetrx.test
...test/suite/galera/t/galera_parallel_autoinc_largetrx.test
+7
-3
mysql-test/suite/galera/t/galera_parallel_autoinc_manytrx.test
...-test/suite/galera/t/galera_parallel_autoinc_manytrx.test
+62
-25
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit,32bit.rdiff
...suite/sys_vars/r/innodb_ft_result_cache_limit,32bit.rdiff
+11
-0
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit.result
...test/suite/sys_vars/r/innodb_ft_result_cache_limit.result
+0
-0
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit_32.result
...t/suite/sys_vars/r/innodb_ft_result_cache_limit_32.result
+0
-7
mysql-test/suite/sys_vars/t/innodb_ft_result_cache_limit.test
...l-test/suite/sys_vars/t/innodb_ft_result_cache_limit.test
+1
-1
mysql-test/suite/sys_vars/t/innodb_ft_result_cache_limit_64.test
...est/suite/sys_vars/t/innodb_ft_result_cache_limit_64.test
+0
-9
No files found.
mysql-test/suite/galera/r/galera_parallel_autoinc_largetrx.result
View file @
9d3e2a7c
connection node_1;
connection node_1;
CREATE TABLE ten (f1 INTEGER);
CREATE TABLE ten (f1 INTEGER)
Engine=InnoDB
;
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB;
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB;
connection node_2;
connection node_2;
set session wsrep_sync_wait=15;
SET GLOBAL wsrep_slave_threads = 4;
SET GLOBAL wsrep_slave_threads = 4;
connection node_1;
connection node_1;
INSERT INTO t1 (f2) SELECT 1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4;;
INSERT INTO t1 (f2) SELECT 1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4;;
...
@@ -13,16 +14,13 @@ INSERT INTO t1 (f2) SELECT 1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4;;
...
@@ -13,16 +14,13 @@ INSERT INTO t1 (f2) SELECT 1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4;;
connection node_1;
connection node_1;
connection node_1a;
connection node_1a;
connection node_2;
connection node_2;
disconnect node_1a;
SELECT COUNT(*) FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
COUNT(*)
30000
30000
SELECT COUNT(DISTINCT f1) FROM t1;
SELECT COUNT(DISTINCT f1) FROM t1;
COUNT(DISTINCT f1)
COUNT(DISTINCT f1)
30000
30000
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE
USER = 'system user' AND STATE NOT LIKE 'InnoDB%';
COUNT(*)
3
connection default;
connection default;
DROP TABLE t1;
DROP TABLE t1;
DROP TABLE ten;
DROP TABLE ten;
mysql-test/suite/galera/r/galera_parallel_autoinc_manytrx.result
View file @
9d3e2a7c
connection node_1;
connection node_1;
CREATE TABLE ten (f1 INTEGER);
CREATE TABLE ten (f1 INTEGER)
Engine=InnoDB
;
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB;
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) Engine=InnoDB;
connection node_2;
connection node_2;
set session wsrep_sync_wait=15;
SET GLOBAL wsrep_slave_threads = 4;
SET GLOBAL wsrep_slave_threads = 4;
connection node_1;
connection node_1;
CREATE PROCEDURE p1 (repeat_count int)
BEGIN
DECLARE current_num int;
SET current_num = 0;
WHILE current_num < repeat_count do
INSERT INTO t1 (f2) SELECT 1 FROM ten AS a1;
COMMIT;
SET current_num = current_num + 1;
END WHILE;
END|
connection node_1a;
connection node_1b;
connection node_2;
connection node_2;
SELECT COUNT(*) = 20000 FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*) = 20000
COUNT(*)
1
40000
SELECT COUNT(DISTINCT f1) = 20000 FROM t1;
SELECT COUNT(DISTINCT f1) FROM t1;
COUNT(DISTINCT f1) = 20000
COUNT(DISTINCT f1)
1
40000
SELECT COUNT(*) = 4 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE 'committed%';
disconnect node_1a;
COUNT(*) = 4
disconnect node_1b;
1
connection default;
connection default;
DROP TABLE t1;
DROP TABLE t1;
DROP TABLE ten;
DROP TABLE ten;
DROP PROCEDURE p1;
mysql-test/suite/galera/t/galera_parallel_autoinc_largetrx.test
View file @
9d3e2a7c
...
@@ -12,13 +12,18 @@
...
@@ -12,13 +12,18 @@
--
source
include
/
galera_connect
.
inc
--
source
include
/
galera_connect
.
inc
--
connection
node_1
--
connection
node_1
CREATE
TABLE
ten
(
f1
INTEGER
);
CREATE
TABLE
ten
(
f1
INTEGER
)
Engine
=
InnoDB
;
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
Engine
=
InnoDB
;
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
Engine
=
InnoDB
;
--
connection
node_2
--
connection
node_2
set
session
wsrep_sync_wait
=
15
;
--
let
$wsrep_slave_threads_orig
=
`SELECT @@wsrep_slave_threads`
--
let
$wsrep_slave_threads_orig
=
`SELECT @@wsrep_slave_threads`
SET
GLOBAL
wsrep_slave_threads
=
4
;
SET
GLOBAL
wsrep_slave_threads
=
4
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
@@
wsrep_slave_threads
+
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
(
STATE
IS
NULL
OR
STATE
NOT
LIKE
'InnoDB%'
);
--
source
include
/
wait_condition
.
inc
--
connection
node_1
--
connection
node_1
--
send
INSERT
INTO
t1
(
f2
)
SELECT
1
FROM
ten
AS
a1
,
ten
AS
a2
,
ten
AS
a3
,
ten
AS
a4
;
--
send
INSERT
INTO
t1
(
f2
)
SELECT
1
FROM
ten
AS
a1
,
ten
AS
a2
,
ten
AS
a3
,
ten
AS
a4
;
...
@@ -37,10 +42,9 @@ SET GLOBAL wsrep_slave_threads = 4;
...
@@ -37,10 +42,9 @@ SET GLOBAL wsrep_slave_threads = 4;
--
connection
node_2
--
connection
node_2
--
reap
--
reap
--
disconnect
node_1a
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
DISTINCT
f1
)
FROM
t1
;
SELECT
COUNT
(
DISTINCT
f1
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
NOT
LIKE
'InnoDB%'
;
--
disable_query_log
--
disable_query_log
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
...
...
mysql-test/suite/galera/t/galera_parallel_autoinc_manytrx.test
View file @
9d3e2a7c
...
@@ -6,43 +6,78 @@
...
@@ -6,43 +6,78 @@
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
big_test
.
inc
--
source
include
/
big_test
.
inc
# Create a second connection to node1 so that we can run transactions concurrently
--
connection
node_1
CREATE
TABLE
ten
(
f1
INTEGER
)
Engine
=
InnoDB
;
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
Engine
=
InnoDB
;
# Create few connections to node1 so that we can run transactions concurrently
--
let
$galera_connection_name
=
node_1a
--
let
$galera_connection_name
=
node_1a
--
let
$galera_server_number
=
1
--
let
$galera_server_number
=
1
--
source
include
/
galera_connect
.
inc
--
source
include
/
galera_connect
.
inc
--
connection
node_1
--
let
$galera_connection_name
=
node_1b
CREATE
TABLE
ten
(
f1
INTEGER
);
--
let
$galera_server_number
=
1
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
--
source
include
/
galera_connect
.
inc
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
Engine
=
InnoDB
;
--
connection
node_2
--
connection
node_2
set
session
wsrep_sync_wait
=
15
;
--
let
$wsrep_slave_threads_orig
=
`SELECT @@wsrep_slave_threads`
--
let
$wsrep_slave_threads_orig
=
`SELECT @@wsrep_slave_threads`
SET
GLOBAL
wsrep_slave_threads
=
4
;
SET
GLOBAL
wsrep_slave_threads
=
4
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
@@
wsrep_slave_threads
+
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
(
STATE
IS
NULL
OR
STATE
NOT
LIKE
'InnoDB%'
);
--
source
include
/
wait_condition
.
inc
--
connection
node_1
--
connection
node_1
--
let
$count
=
1000
DELIMITER
|
;
while
(
$count
)
CREATE
PROCEDURE
p1
(
repeat_count
int
)
{
BEGIN
--
disable_query_log
DECLARE
current_num
int
;
SET
current_num
=
0
;
WHILE
current_num
<
repeat_count
do
INSERT
INTO
t1
(
f2
)
SELECT
1
FROM
ten
AS
a1
;
INSERT
INTO
t1
(
f2
)
SELECT
1
FROM
ten
AS
a1
;
--
enable_query_log
COMMIT
;
--
dec
$count
SET
current_num
=
current_num
+
1
;
}
END
WHILE
;
END
|
DELIMITER
;
|
--
disable_query_log
send
call
p1
(
1000
);
--
connection
node_1a
--
disable_query_log
send
call
p1
(
1000
);
--
connection
node_1b
--
disable_query_log
send
call
p1
(
1000
);
--
connection
node_2
--
connection
node_2
--
let
$count
=
1000
--
disable_query_log
while
(
$count
)
send
call
p1
(
1000
);
{
--
disable_query_log
--
connection
node_1
INSERT
INTO
t1
(
f2
)
SELECT
1
FROM
ten
AS
a1
;
reap
;
--
enable_query_log
--
enable_query_log
--
dec
$count
}
SELECT
COUNT
(
*
)
=
20000
FROM
t1
;
--
connection
node_1a
SELECT
COUNT
(
DISTINCT
f1
)
=
20000
FROM
t1
;
reap
;
SELECT
COUNT
(
*
)
=
4
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
LIKE
'committed%'
;
--
enable_query_log
--
connection
node_1b
reap
;
--
enable_query_log
--
connection
node_2
reap
;
--
enable_query_log
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
DISTINCT
f1
)
FROM
t1
;
--
disconnect
node_1a
--
disconnect
node_1b
--
disable_query_log
--
disable_query_log
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_threads_orig
;
...
@@ -51,4 +86,6 @@ SELECT COUNT(*) = 4 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system use
...
@@ -51,4 +86,6 @@ SELECT COUNT(*) = 4 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system use
--
connection
default
--
connection
default
DROP
TABLE
t1
;
DROP
TABLE
t1
;
DROP
TABLE
ten
;
DROP
TABLE
ten
;
DROP
PROCEDURE
p1
;
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit,32bit.rdiff
0 → 100644
View file @
9d3e2a7c
--- mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit.result 2019-05-07 15:09:57.220599318 +0530
+++ mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit.reject 2019-05-07 15:10:20.012718538 +0530
@@ -1,5 +1,7 @@
set global innodb_ft_result_cache_limit=5000000000;
+Warnings:
+Warning 1292 Truncated incorrect innodb_ft_result_cache_limit value: '5000000000'
select @@innodb_ft_result_cache_limit;
@@innodb_ft_result_cache_limit
-5000000000
+4294967295
set global innodb_ft_result_cache_limit=2000000000;
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit
_64
.result
→
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit.result
View file @
9d3e2a7c
File moved
mysql-test/suite/sys_vars/r/innodb_ft_result_cache_limit_32.result
deleted
100644 → 0
View file @
27232a9f
set global innodb_ft_result_cache_limit=5000000000;
Warnings:
Warning 1292 Truncated incorrect innodb_ft_result_cache_limit value: '5000000000'
select @@innodb_ft_result_cache_limit;
@@innodb_ft_result_cache_limit
4294967295
set global innodb_ft_result_cache_limit=2000000000;
mysql-test/suite/sys_vars/t/innodb_ft_result_cache_limit
_32
.test
→
mysql-test/suite/sys_vars/t/innodb_ft_result_cache_limit.test
View file @
9d3e2a7c
--
source
include
/
have_32bit
.
inc
--
source
include
/
word_size
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
let
$innodb_ft_result_cache_limit_orig
=
`select @@innodb_ft_result_cache_limit`
;
let
$innodb_ft_result_cache_limit_orig
=
`select @@innodb_ft_result_cache_limit`
;
...
...
mysql-test/suite/sys_vars/t/innodb_ft_result_cache_limit_64.test
deleted
100644 → 0
View file @
27232a9f
--
source
include
/
have_64bit
.
inc
--
source
include
/
have_innodb
.
inc
let
$innodb_ft_result_cache_limit_orig
=
`select @@innodb_ft_result_cache_limit`
;
set
global
innodb_ft_result_cache_limit
=
5000000000
;
select
@@
innodb_ft_result_cache_limit
;
eval
set
global
innodb_ft_result_cache_limit
=
$innodb_ft_result_cache_limit_orig
;
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