mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -7,10 +7,6 @@
|
|||||||
RESET MASTER;
|
RESET MASTER;
|
||||||
--source include/wait_for_binlog_checkpoint.inc
|
--source include/wait_for_binlog_checkpoint.inc
|
||||||
|
|
||||||
set time_zone="+02:00";
|
|
||||||
--let $stable_stamp= `SELECT UNIX_TIMESTAMP("2020-01-21 15:32:22")`
|
|
||||||
eval set timestamp=$stable_stamp;
|
|
||||||
|
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
||||||
--let $binlog_pos1=query_get_value(SHOW MASTER STATUS, Position, 1)
|
--let $binlog_pos1=query_get_value(SHOW MASTER STATUS, Position, 1)
|
||||||
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
||||||
@ -42,7 +38,6 @@ CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
|||||||
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
||||||
/* GTID */ COMMIT;
|
/* GTID */ COMMIT;
|
||||||
connect (tmp_con,localhost,root,,);
|
connect (tmp_con,localhost,root,,);
|
||||||
eval set timestamp=$stable_stamp;
|
|
||||||
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
||||||
/* GTID */ BEGIN;
|
/* GTID */ BEGIN;
|
||||||
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
@ -72,7 +67,7 @@ my $file= $ENV{'OUTPUT_FILE'};
|
|||||||
open F, "<", $file
|
open F, "<", $file
|
||||||
or die "Unable to open file '$file': $!\n";
|
or die "Unable to open file '$file': $!\n";
|
||||||
while (<F>) {
|
while (<F>) {
|
||||||
s/^#\d+ \d+:\d+:\d+ /# /;
|
s/^#\d+ +\d+:\d+:\d+ /# /;
|
||||||
s/GTID \d+-\d+-\d+/GTID #-#-#/;
|
s/GTID \d+-\d+-\d+/GTID #-#-#/;
|
||||||
s/end_log_pos \d+/end_log_pos #/;
|
s/end_log_pos \d+/end_log_pos #/;
|
||||||
s/table id \d+/table id #/;
|
s/table id \d+/table id #/;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
RESET MASTER;
|
RESET MASTER;
|
||||||
set time_zone="+02:00";
|
|
||||||
set timestamp=1579613542;
|
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
||||||
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
||||||
/* GTID */ BEGIN;
|
/* GTID */ BEGIN;
|
||||||
@ -31,7 +29,6 @@ CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
|||||||
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
||||||
/* GTID */ COMMIT;
|
/* GTID */ COMMIT;
|
||||||
connect tmp_con,localhost,root,,;
|
connect tmp_con,localhost,root,,;
|
||||||
set timestamp=1579613542;
|
|
||||||
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
||||||
/* GTID */ BEGIN;
|
/* GTID */ BEGIN;
|
||||||
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
RESET MASTER;
|
RESET MASTER;
|
||||||
set time_zone="+02:00";
|
|
||||||
set timestamp=1579613542;
|
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
||||||
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
/* GTID */ INSERT INTO t1 VALUES (1,0);
|
||||||
/* GTID */ BEGIN;
|
/* GTID */ BEGIN;
|
||||||
@ -31,7 +29,6 @@ CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
|
|||||||
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1);
|
||||||
/* GTID */ COMMIT;
|
/* GTID */ COMMIT;
|
||||||
connect tmp_con,localhost,root,,;
|
connect tmp_con,localhost,root,,;
|
||||||
set timestamp=1579613542;
|
|
||||||
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0);
|
||||||
/* GTID */ BEGIN;
|
/* GTID */ BEGIN;
|
||||||
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
|
@ -705,7 +705,7 @@
|
|||||||
+COMMAND_LINE_ARGUMENT REQUIRED
|
+COMMAND_LINE_ARGUMENT REQUIRED
|
||||||
+VARIABLE_NAME INNODB_LOG_COMPRESSED_PAGES
|
+VARIABLE_NAME INNODB_LOG_COMPRESSED_PAGES
|
||||||
SESSION_VALUE NULL
|
SESSION_VALUE NULL
|
||||||
GLOBAL_VALUE OFF
|
GLOBAL_VALUE ON
|
||||||
GLOBAL_VALUE_ORIGIN COMPILE-TIME
|
GLOBAL_VALUE_ORIGIN COMPILE-TIME
|
||||||
@@ -1397,7 +1677,7 @@
|
@@ -1397,7 +1677,7 @@
|
||||||
GLOBAL_VALUE_ORIGIN CONFIG
|
GLOBAL_VALUE_ORIGIN CONFIG
|
||||||
|
@ -379,7 +379,7 @@
|
|||||||
+COMMAND_LINE_ARGUMENT REQUIRED
|
+COMMAND_LINE_ARGUMENT REQUIRED
|
||||||
VARIABLE_NAME INNODB_LOG_COMPRESSED_PAGES
|
VARIABLE_NAME INNODB_LOG_COMPRESSED_PAGES
|
||||||
SESSION_VALUE NULL
|
SESSION_VALUE NULL
|
||||||
GLOBAL_VALUE OFF
|
GLOBAL_VALUE ON
|
||||||
@@ -1447,6 +1727,34 @@
|
@@ -1447,6 +1727,34 @@
|
||||||
ENUM_VALUE_LIST NULL
|
ENUM_VALUE_LIST NULL
|
||||||
READ_ONLY NO
|
READ_ONLY NO
|
||||||
|
@ -350,10 +350,13 @@ int print_explain_row(select_result_sink *result,
|
|||||||
item_list.push_back(new (mem_root) Item_string_sys(thd, jtype_str),
|
item_list.push_back(new (mem_root) Item_string_sys(thd, jtype_str),
|
||||||
mem_root);
|
mem_root);
|
||||||
|
|
||||||
/* 'possible_keys' */
|
/* 'possible_keys'
|
||||||
|
The buffer must not be deallocated before we call send_data, otherwise
|
||||||
|
we may end up reading freed memory.
|
||||||
|
*/
|
||||||
|
StringBuffer<64> possible_keys_buf;
|
||||||
if (possible_keys && !possible_keys->is_empty())
|
if (possible_keys && !possible_keys->is_empty())
|
||||||
{
|
{
|
||||||
StringBuffer<64> possible_keys_buf;
|
|
||||||
push_string_list(thd, &item_list, *possible_keys, &possible_keys_buf);
|
push_string_list(thd, &item_list, *possible_keys, &possible_keys_buf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -66,12 +66,12 @@ page_zip_stat_t page_zip_stat[PAGE_ZIP_SSIZE_MAX];
|
|||||||
/** Statistics on compression, indexed by index->id */
|
/** Statistics on compression, indexed by index->id */
|
||||||
page_zip_stat_per_index_t page_zip_stat_per_index;
|
page_zip_stat_per_index_t page_zip_stat_per_index;
|
||||||
|
|
||||||
/* Compression level to be used by zlib. Settable by user. */
|
/** Compression level to be used by zlib. Settable by user. */
|
||||||
uint page_zip_level = DEFAULT_COMPRESSION_LEVEL;
|
uint page_zip_level;
|
||||||
|
|
||||||
/* Whether or not to log compressed page images to avoid possible
|
/** Whether or not to log compressed page images to avoid possible
|
||||||
compression algorithm changes in zlib. */
|
compression algorithm changes in zlib. */
|
||||||
my_bool page_zip_log_pages = true;
|
my_bool page_zip_log_pages;
|
||||||
|
|
||||||
/* Please refer to ../include/page0zip.ic for a description of the
|
/* Please refer to ../include/page0zip.ic for a description of the
|
||||||
compressed page format. */
|
compressed page format. */
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
||||||
Copyright (c) 2012, Facebook Inc.
|
Copyright (c) 2012, Facebook Inc.
|
||||||
Copyright (c) 2014, SkySQL Ab. All Rights Reserved.
|
Copyright (c) 2014, 2017, MariaDB Corporation.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under
|
This program is free software; you can redistribute it and/or modify it under
|
||||||
the terms of the GNU General Public License as published by the Free Software
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
@ -83,12 +83,12 @@ UNIV_INTERN mysql_pfs_key_t page_zip_stat_per_index_mutex_key;
|
|||||||
#endif /* !UNIV_INNOCHECKSUM */
|
#endif /* !UNIV_INNOCHECKSUM */
|
||||||
#endif /* !UNIV_HOTBACKUP */
|
#endif /* !UNIV_HOTBACKUP */
|
||||||
|
|
||||||
/* Compression level to be used by zlib. Settable by user. */
|
/** Compression level to be used by zlib. Settable by user. */
|
||||||
UNIV_INTERN uint page_zip_level = DEFAULT_COMPRESSION_LEVEL;
|
UNIV_INTERN uint page_zip_level;
|
||||||
|
|
||||||
/* Whether or not to log compressed page images to avoid possible
|
/** Whether or not to log compressed page images to avoid possible
|
||||||
compression algorithm changes in zlib. */
|
compression algorithm changes in zlib. */
|
||||||
UNIV_INTERN my_bool page_zip_log_pages = false;
|
UNIV_INTERN my_bool page_zip_log_pages;
|
||||||
|
|
||||||
/* Please refer to ../include/page0zip.ic for a description of the
|
/* Please refer to ../include/page0zip.ic for a description of the
|
||||||
compressed page format. */
|
compressed page format. */
|
||||||
|
Reference in New Issue
Block a user