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
fe681d79
Commit
fe681d79
authored
Nov 24, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.11 into 11.0
parents
5b6134b0
3e90efe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
28 deletions
+36
-28
mysql-test/suite/innodb/r/innodb-index-online.result
mysql-test/suite/innodb/r/innodb-index-online.result
+17
-14
mysql-test/suite/innodb/t/innodb-index-online.test
mysql-test/suite/innodb/t/innodb-index-online.test
+19
-14
No files found.
mysql-test/suite/innodb/r/innodb-index-online.result
View file @
fe681d79
SET GLOBAL innodb_monitor_reset_all=all;
SET GLOBAL innodb_monitor_reset_all=default;
call mtr.add_suppression("InnoDB: Warning: Small buffer pool size");
CREATE TABLE t1 (c1 INT PRIMARY KEY, c2 INT, c3 TEXT)
ENGINE=InnoDB STATS_PERSISTENT=0;
...
...
@@ -153,6 +155,7 @@ test t1_c2_stats GEN_CLUST_INDEX LAST_UPDATE size 1 NULL Number of pages in the
connection con1;
KILL QUERY @id;
ERROR 70100: Query execution was interrupted
SET GLOBAL innodb_max_purge_lag_wait=0;
SET DEBUG_SYNC = 'row_log_apply_before SIGNAL c2d_created WAIT_FOR kill_done';
CREATE INDEX c2d ON t1(c2);
connection default;
...
...
@@ -219,13 +222,13 @@ t1 CREATE TABLE `t1` (
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci STATS_PERSISTENT=1
connection default;
SET @merge_encrypt_0=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_encrypted');
SET @merge_decrypt_0=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_decrypted');
SET @rowlog_encrypt_0=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
connection con1;
SET DEBUG_SYNC = 'row_log_apply_before SIGNAL c2e_created WAIT_FOR dml2_done';
...
...
@@ -272,13 +275,13 @@ name pos
c2 0
c3 1
SET @merge_encrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_encrypted');
SET @merge_decrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_decrypted');
SET @rowlog_encrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
SELECT
(@merge_encrypt_1-@merge_encrypt_0)-
...
...
@@ -318,16 +321,16 @@ ddl_pending_alter_table 0
ddl_sort_file_alter_table 0
ddl_log_file_alter_table 1
SET @merge_encrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_encrypted');
SET @merge_decrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_decrypted');
SET @rowlog_encrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
SET @rowlog_decrypt_1=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_decrypted');
connection con1;
SET DEBUG_SYNC = 'row_log_apply_before SIGNAL c2f_created WAIT_FOR dml3_done';
...
...
@@ -403,16 +406,16 @@ ddl_sort_file_alter_table 0
ddl_log_file_alter_table 2
connection default;
SET @merge_encrypt_2=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_encrypted');
SET @merge_decrypt_2=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_merge_blocks_decrypted');
SET @rowlog_encrypt_2=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
SET @rowlog_decrypt_2=
(SELECT
variable_value
FROM information_schema.global_status
(SELECT
CAST(variable_value AS INTEGER)
FROM information_schema.global_status
WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_decrypted');
SELECT
(@merge_encrypt_2-@merge_encrypt_1)-
...
...
mysql-test/suite/innodb/t/innodb-index-online.test
View file @
fe681d79
...
...
@@ -4,6 +4,10 @@
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
no_valgrind_without_big
.
inc
SET
GLOBAL
innodb_monitor_reset_all
=
all
;
--
disable_warnings
SET
GLOBAL
innodb_monitor_reset_all
=
default
;
--
enable_warnings
let
$innodb_metrics_select
=
SELECT
name
,
count
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
subsystem
=
'ddl'
;
...
...
@@ -154,6 +158,7 @@ let $ID= `SELECT @id := CONNECTION_ID()`;
--
error
ER_QUERY_INTERRUPTED
KILL
QUERY
@
id
;
SET
GLOBAL
innodb_max_purge_lag_wait
=
0
;
SET
DEBUG_SYNC
=
'row_log_apply_before SIGNAL c2d_created WAIT_FOR kill_done'
;
--
send
CREATE
INDEX
c2d
ON
t1
(
c2
);
...
...
@@ -205,13 +210,13 @@ SHOW CREATE TABLE t1;
connection
default
;
SET
@
merge_encrypt_0
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_encrypted'
);
SET
@
merge_decrypt_0
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_decrypted'
);
SET
@
rowlog_encrypt_0
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_encrypted'
);
connection
con1
;
...
...
@@ -250,13 +255,13 @@ INNER JOIN INFORMATION_SCHEMA.INNODB_SYS_FIELDS sf
ON
si
.
index_id
=
sf
.
index_id
WHERE
si
.
name
=
'?c2e'
;
SET
@
merge_encrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_encrypted'
);
SET
@
merge_decrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_decrypted'
);
SET
@
rowlog_encrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_encrypted'
);
SELECT
...
...
@@ -293,16 +298,16 @@ ALTER TABLE t1 COMMENT 'testing if c2e will be dropped';
eval
$innodb_metrics_select
;
SET
@
merge_encrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_encrypted'
);
SET
@
merge_decrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_decrypted'
);
SET
@
rowlog_encrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_encrypted'
);
SET
@
rowlog_decrypt_1
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_decrypted'
);
connection
con1
;
...
...
@@ -339,16 +344,16 @@ eval $innodb_metrics_select;
connection
default
;
SET
@
merge_encrypt_2
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_encrypted'
);
SET
@
merge_decrypt_2
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_merge_blocks_decrypted'
);
SET
@
rowlog_encrypt_2
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_encrypted'
);
SET
@
rowlog_decrypt_2
=
(
SELECT
variable_value
FROM
information_schema
.
global_status
(
SELECT
CAST
(
variable_value
AS
INTEGER
)
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_encryption_n_rowlog_blocks_decrypted'
);
SELECT
...
...
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