mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch 10.2 into 10.3
This commit is contained in:
@@ -6,6 +6,10 @@ init:
|
|||||||
|
|
||||||
version: build-{build}~branch-{branch}
|
version: build-{build}~branch-{branch}
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
||||||
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
||||||
|
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
|
@@ -99,8 +99,8 @@ extern "C" {
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#define HAVE_READLINE
|
#define HAVE_READLINE
|
||||||
#define USE_POPEN
|
|
||||||
#endif
|
#endif
|
||||||
|
#define USE_POPEN
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_VIDATTR
|
#ifdef HAVE_VIDATTR
|
||||||
@@ -4195,11 +4195,6 @@ com_nopager(String *buffer __attribute__((unused)),
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Sorry, you can't send the result to an editor in Win32
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef USE_POPEN
|
#ifdef USE_POPEN
|
||||||
static int
|
static int
|
||||||
com_edit(String *buffer,char *line __attribute__((unused)))
|
com_edit(String *buffer,char *line __attribute__((unused)))
|
||||||
@@ -4220,7 +4215,7 @@ com_edit(String *buffer,char *line __attribute__((unused)))
|
|||||||
|
|
||||||
if (!(editor = (char *)getenv("EDITOR")) &&
|
if (!(editor = (char *)getenv("EDITOR")) &&
|
||||||
!(editor = (char *)getenv("VISUAL")))
|
!(editor = (char *)getenv("VISUAL")))
|
||||||
editor = "vi";
|
editor = IF_WIN("notepad","vi");
|
||||||
strxmov(buff,editor," ",filename,NullS);
|
strxmov(buff,editor," ",filename,NullS);
|
||||||
if ((error= system(buff)))
|
if ((error= system(buff)))
|
||||||
{
|
{
|
||||||
@@ -4235,7 +4230,7 @@ com_edit(String *buffer,char *line __attribute__((unused)))
|
|||||||
if ((fd = my_open(filename,O_RDONLY, MYF(MY_WME))) < 0)
|
if ((fd = my_open(filename,O_RDONLY, MYF(MY_WME))) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
(void) buffer->alloc((uint) stat_arg.st_size);
|
(void) buffer->alloc((uint) stat_arg.st_size);
|
||||||
if ((tmp=read(fd,(char*) buffer->ptr(),buffer->alloced_length())) >= 0L)
|
if ((tmp=(int)my_read(fd,(uchar*) buffer->ptr(),buffer->alloced_length(),MYF(0))) >= 0)
|
||||||
buffer->length((uint) tmp);
|
buffer->length((uint) tmp);
|
||||||
else
|
else
|
||||||
buffer->length(0);
|
buffer->length(0);
|
||||||
|
@@ -781,7 +781,7 @@ void SSL_CTX_set_verify(SSL_CTX* ctx, int mode, VerifyCallback vc)
|
|||||||
int SSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file,
|
int SSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file,
|
||||||
const char* path)
|
const char* path)
|
||||||
{
|
{
|
||||||
int ret = SSL_FAILURE;
|
int ret = SSL_SUCCESS;
|
||||||
|
|
||||||
if (file) ret = read_file(ctx, file, SSL_FILETYPE_PEM, CA);
|
if (file) ret = read_file(ctx, file, SSL_FILETYPE_PEM, CA);
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# MDEV-5317 Compound statement / anonymous blocks
|
# MDEV-5317 Compound statement / anonymous blocks
|
||||||
#
|
#
|
||||||
source include/have_log_bin.inc;
|
source include/have_binlog_format_mixed_or_statement.inc;
|
||||||
delimiter |;
|
delimiter |;
|
||||||
|
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY)|
|
CREATE TABLE t1 (a INT PRIMARY KEY)|
|
||||||
|
@@ -16,4 +16,3 @@ mysql_embedded : Bug#12561297 2011-05-14 Anitha Dependent on PB2 chang
|
|||||||
#show_explain : Psergey: random timeout in range-checked-for-each record query.
|
#show_explain : Psergey: random timeout in range-checked-for-each record query.
|
||||||
file_contents : MDEV-6526 these files are not installed anymore
|
file_contents : MDEV-6526 these files are not installed anymore
|
||||||
max_statement_time : cannot possibly work, depends on timing
|
max_statement_time : cannot possibly work, depends on timing
|
||||||
partition_open_files_limit : open_files_limit check broken by MDEV-18360
|
|
||||||
|
@@ -198,5 +198,28 @@ id id
|
|||||||
1 NULL
|
1 NULL
|
||||||
2 1
|
2 1
|
||||||
3 3
|
3 3
|
||||||
|
#
|
||||||
|
# MDEV-27270: Wrong query plan with Range Checked for Each Record and ORDER BY ... LIMIT
|
||||||
|
#
|
||||||
|
# This must NOT have "Range checked for each record" without any
|
||||||
|
# provisions to produce rows in the required ordering:
|
||||||
|
explain
|
||||||
|
select
|
||||||
|
t1.id,t2.id
|
||||||
|
from
|
||||||
|
t1 left join
|
||||||
|
t2 on t2.id2 = t1.id and
|
||||||
|
t2.id = (select dd.id
|
||||||
|
from t2 dd
|
||||||
|
where
|
||||||
|
dd.id2 = t1.id and
|
||||||
|
d1 > '2019-02-06 00:00:00'
|
||||||
|
order by
|
||||||
|
dd.d1, dd.d2, dd.id limit 1
|
||||||
|
);
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 PRIMARY t1 index NULL PRIMARY 4 NULL # Using index
|
||||||
|
1 PRIMARY t2 eq_ref PRIMARY,id2 PRIMARY 4 func # Using where
|
||||||
|
2 DEPENDENT SUBQUERY dd range id2,for_latest_sort for_latest_sort 6 NULL # Using where
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
# End of 10.2 tests
|
# End of 10.2 tests
|
||||||
|
@@ -184,6 +184,28 @@ from
|
|||||||
order by
|
order by
|
||||||
dd.d1 desc, dd.d2 desc, dd.id desc limit 1
|
dd.d1 desc, dd.d2 desc, dd.id desc limit 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-27270: Wrong query plan with Range Checked for Each Record and ORDER BY ... LIMIT
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--echo # This must NOT have "Range checked for each record" without any
|
||||||
|
--echo # provisions to produce rows in the required ordering:
|
||||||
|
--replace_column 9 #
|
||||||
|
explain
|
||||||
|
select
|
||||||
|
t1.id,t2.id
|
||||||
|
from
|
||||||
|
t1 left join
|
||||||
|
t2 on t2.id2 = t1.id and
|
||||||
|
t2.id = (select dd.id
|
||||||
|
from t2 dd
|
||||||
|
where
|
||||||
|
dd.id2 = t1.id and
|
||||||
|
d1 > '2019-02-06 00:00:00'
|
||||||
|
order by
|
||||||
|
dd.d1, dd.d2, dd.id limit 1
|
||||||
|
);
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
|
|
||||||
--echo # End of 10.2 tests
|
--echo # End of 10.2 tests
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
DROP TABLE IF EXISTS `t1`;
|
DROP TABLE IF EXISTS `t1`;
|
||||||
|
call mtr.add_suppression("option 'table_open_cache'");
|
||||||
|
call mtr.add_suppression("option 'max_connections'");
|
||||||
# Bug#46922: crash when adding partitions and open_files_limit is reached
|
# Bug#46922: crash when adding partitions and open_files_limit is reached
|
||||||
CREATE TABLE t1 (a INT PRIMARY KEY)
|
CREATE TABLE t1 (a INT PRIMARY KEY)
|
||||||
ENGINE=MyISAM PARTITION BY KEY () PARTITIONS 1;
|
ENGINE=MyISAM PARTITION BY KEY () PARTITIONS 1;
|
||||||
|
@@ -5551,6 +5551,19 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
|||||||
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||||
DEALLOCATE PREPARE stmt;
|
DEALLOCATE PREPARE stmt;
|
||||||
DROP TABLE t1, t2, t3;
|
DROP TABLE t1, t2, t3;
|
||||||
|
#
|
||||||
|
# MDEV-21866: Assertion `!result' failed in convert_const_to_int upon 2nd execution of PS
|
||||||
|
#
|
||||||
|
CREATE TABLE t1 (a BIGINT DEFAULT -1);
|
||||||
|
CREATE VIEW v1 AS SELECT DISTINCT a FROM t1;
|
||||||
|
PREPARE stmt FROM 'SELECT * FROM v1 WHERE a <=> NULL';
|
||||||
|
EXECUTE stmt;
|
||||||
|
a
|
||||||
|
EXECUTE stmt;
|
||||||
|
a
|
||||||
|
DEALLOCATE PREPARE stmt;
|
||||||
|
DROP VIEW v1;
|
||||||
|
DROP TABLE t1;
|
||||||
# End of 10.2 tests
|
# End of 10.2 tests
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
@@ -4998,6 +4998,22 @@ EXECUTE stmt;
|
|||||||
DEALLOCATE PREPARE stmt;
|
DEALLOCATE PREPARE stmt;
|
||||||
DROP TABLE t1, t2, t3;
|
DROP TABLE t1, t2, t3;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-21866: Assertion `!result' failed in convert_const_to_int upon 2nd execution of PS
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
CREATE TABLE t1 (a BIGINT DEFAULT -1);
|
||||||
|
CREATE VIEW v1 AS SELECT DISTINCT a FROM t1;
|
||||||
|
PREPARE stmt FROM 'SELECT * FROM v1 WHERE a <=> NULL';
|
||||||
|
EXECUTE stmt;
|
||||||
|
EXECUTE stmt;
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
DEALLOCATE PREPARE stmt;
|
||||||
|
DROP VIEW v1;
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
|
||||||
--echo # End of 10.2 tests
|
--echo # End of 10.2 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
cacert.pem
|
|
79
mysql-test/std_data/capath/3106f582.0
Normal file
79
mysql-test/std_data/capath/3106f582.0
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
Certificate:
|
||||||
|
Data:
|
||||||
|
Version: 3 (0x2)
|
||||||
|
Serial Number:
|
||||||
|
d0:4d:23:85:ee:59:b3:fa
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
Issuer: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
||||||
|
Validity
|
||||||
|
Not Before: Jan 27 10:11:10 2019 GMT
|
||||||
|
Not After : Jan 22 10:11:10 2039 GMT
|
||||||
|
Subject: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
||||||
|
Subject Public Key Info:
|
||||||
|
Public Key Algorithm: rsaEncryption
|
||||||
|
Public-Key: (2048 bit)
|
||||||
|
Modulus:
|
||||||
|
00:e8:0e:a7:84:d3:75:30:06:30:b2:10:b9:d1:88:
|
||||||
|
36:2b:5e:f8:c8:44:57:cb:67:72:ab:96:95:33:d5:
|
||||||
|
88:d1:8f:23:50:98:ba:6d:20:00:80:bd:35:d5:c1:
|
||||||
|
bf:98:49:c4:0a:15:4a:34:a6:21:9b:2e:8c:15:09:
|
||||||
|
f0:63:81:02:c2:7c:e2:53:e0:f7:a1:1a:40:5e:8f:
|
||||||
|
41:4a:4c:56:d4:20:f1:d5:a7:c1:53:2e:ff:7e:37:
|
||||||
|
17:cc:7e:74:bd:e2:22:33:ce:8c:77:62:a4:c5:3f:
|
||||||
|
44:35:7b:7e:b9:f5:7d:8c:7a:27:58:fd:2c:42:86:
|
||||||
|
2e:e7:6b:01:99:7b:fe:7d:a7:a1:4f:3e:39:39:54:
|
||||||
|
1f:61:de:74:66:d1:77:4f:43:1b:66:70:29:85:de:
|
||||||
|
fc:8f:8e:1b:7b:a2:66:48:26:7f:9b:a6:fd:4a:e4:
|
||||||
|
dc:eb:ed:bd:f8:e3:f1:57:98:13:6f:f1:a3:2a:e3:
|
||||||
|
73:bd:8d:7c:6f:4b:59:35:bc:b5:42:3e:99:a7:13:
|
||||||
|
8d:be:2e:5c:9a:c6:5b:ab:ae:bf:00:e9:c8:ee:05:
|
||||||
|
22:8e:d5:67:1a:47:9a:6d:9c:f9:42:3e:15:34:f8:
|
||||||
|
31:ec:b4:7e:d3:92:95:b0:b8:f9:66:f3:bd:1d:31:
|
||||||
|
2c:b1:90:62:a1:f8:4e:a6:5d:26:22:f0:e1:fe:16:
|
||||||
|
2b:69
|
||||||
|
Exponent: 65537 (0x10001)
|
||||||
|
X509v3 extensions:
|
||||||
|
X509v3 Subject Key Identifier:
|
||||||
|
CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
||||||
|
X509v3 Authority Key Identifier:
|
||||||
|
keyid:CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
||||||
|
|
||||||
|
X509v3 Basic Constraints:
|
||||||
|
CA:TRUE
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
df:fd:74:29:5b:5e:9a:8b:09:02:40:59:73:cb:71:47:3f:97:
|
||||||
|
3d:a9:fd:c4:8c:01:29:c9:86:b8:71:55:ff:72:0e:50:dc:c8:
|
||||||
|
b5:e6:91:41:52:47:21:30:cc:4d:e7:3b:4b:db:55:ea:7d:46:
|
||||||
|
eb:53:e0:b7:1b:80:7c:b1:0c:d3:d1:bc:a0:73:ae:96:1f:fd:
|
||||||
|
05:52:7e:54:d5:03:52:69:7b:34:5f:27:d7:98:da:98:76:73:
|
||||||
|
e6:bb:50:59:2a:94:90:67:03:1c:a4:76:2f:ee:ef:59:60:09:
|
||||||
|
48:33:03:2b:52:ed:83:42:f8:71:19:7f:d8:be:40:ed:20:01:
|
||||||
|
90:3c:7e:1c:8b:d2:9f:f3:2f:09:1f:50:c8:10:e1:8a:d9:a5:
|
||||||
|
49:9c:0b:74:17:b9:2b:68:f6:1e:73:c2:73:10:38:b3:35:e2:
|
||||||
|
87:91:1b:a1:d1:9b:81:9d:1b:32:cc:03:6e:4c:82:95:81:11:
|
||||||
|
42:56:e2:16:2b:22:65:db:40:2c:ca:dc:03:f4:d5:07:cf:f5:
|
||||||
|
13:b2:cf:51:5b:24:cd:c7:d1:9b:42:8e:f9:df:5d:1e:5a:09:
|
||||||
|
a3:4f:a9:0b:f4:21:c5:bb:ff:02:93:67:e8:2d:ee:ab:d9:59:
|
||||||
|
76:03:2c:a1:bd:fb:dc:af:b6:82:94:71:85:53:a8:18:0d:3a:
|
||||||
|
9e:42:eb:59
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDfzCCAmegAwIBAgIJANBNI4XuWbP6MA0GCSqGSIb3DQEBCwUAMFYxDzANBgNV
|
||||||
|
BAMMBmNhY2VydDELMAkGA1UEBhMCRkkxETAPBgNVBAgMCEhlbHNpbmtpMREwDwYD
|
||||||
|
VQQHDAhIZWxzaW5raTEQMA4GA1UECgwHTWFyaWFEQjAeFw0xOTAxMjcxMDExMTBa
|
||||||
|
Fw0zOTAxMjIxMDExMTBaMFYxDzANBgNVBAMMBmNhY2VydDELMAkGA1UEBhMCRkkx
|
||||||
|
ETAPBgNVBAgMCEhlbHNpbmtpMREwDwYDVQQHDAhIZWxzaW5raTEQMA4GA1UECgwH
|
||||||
|
TWFyaWFEQjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOgOp4TTdTAG
|
||||||
|
MLIQudGINite+MhEV8tncquWlTPViNGPI1CYum0gAIC9NdXBv5hJxAoVSjSmIZsu
|
||||||
|
jBUJ8GOBAsJ84lPg96EaQF6PQUpMVtQg8dWnwVMu/343F8x+dL3iIjPOjHdipMU/
|
||||||
|
RDV7frn1fYx6J1j9LEKGLudrAZl7/n2noU8+OTlUH2HedGbRd09DG2ZwKYXe/I+O
|
||||||
|
G3uiZkgmf5um/Urk3Ovtvfjj8VeYE2/xoyrjc72NfG9LWTW8tUI+macTjb4uXJrG
|
||||||
|
W6uuvwDpyO4FIo7VZxpHmm2c+UI+FTT4Mey0ftOSlbC4+WbzvR0xLLGQYqH4TqZd
|
||||||
|
JiLw4f4WK2kCAwEAAaNQME4wHQYDVR0OBBYEFMpxmYnwcqt1ZrtlagMEcqV7laaT
|
||||||
|
MB8GA1UdIwQYMBaAFMpxmYnwcqt1ZrtlagMEcqV7laaTMAwGA1UdEwQFMAMBAf8w
|
||||||
|
DQYJKoZIhvcNAQELBQADggEBAN/9dClbXpqLCQJAWXPLcUc/lz2p/cSMASnJhrhx
|
||||||
|
Vf9yDlDcyLXmkUFSRyEwzE3nO0vbVep9RutT4LcbgHyxDNPRvKBzrpYf/QVSflTV
|
||||||
|
A1JpezRfJ9eY2ph2c+a7UFkqlJBnAxykdi/u71lgCUgzAytS7YNC+HEZf9i+QO0g
|
||||||
|
AZA8fhyL0p/zLwkfUMgQ4YrZpUmcC3QXuSto9h5zwnMQOLM14oeRG6HRm4GdGzLM
|
||||||
|
A25MgpWBEUJW4hYrImXbQCzK3AP01QfP9ROyz1FbJM3H0ZtCjvnfXR5aCaNPqQv0
|
||||||
|
IcW7/wKTZ+gt7qvZWXYDLKG9+9yvtoKUcYVTqBgNOp5C61k=
|
||||||
|
-----END CERTIFICATE-----
|
@@ -1,79 +0,0 @@
|
|||||||
Certificate:
|
|
||||||
Data:
|
|
||||||
Version: 3 (0x2)
|
|
||||||
Serial Number:
|
|
||||||
d0:4d:23:85:ee:59:b3:fa
|
|
||||||
Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
Issuer: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
|
||||||
Validity
|
|
||||||
Not Before: Jan 27 10:11:10 2019 GMT
|
|
||||||
Not After : Jan 22 10:11:10 2039 GMT
|
|
||||||
Subject: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
|
||||||
Subject Public Key Info:
|
|
||||||
Public Key Algorithm: rsaEncryption
|
|
||||||
Public-Key: (2048 bit)
|
|
||||||
Modulus:
|
|
||||||
00:e8:0e:a7:84:d3:75:30:06:30:b2:10:b9:d1:88:
|
|
||||||
36:2b:5e:f8:c8:44:57:cb:67:72:ab:96:95:33:d5:
|
|
||||||
88:d1:8f:23:50:98:ba:6d:20:00:80:bd:35:d5:c1:
|
|
||||||
bf:98:49:c4:0a:15:4a:34:a6:21:9b:2e:8c:15:09:
|
|
||||||
f0:63:81:02:c2:7c:e2:53:e0:f7:a1:1a:40:5e:8f:
|
|
||||||
41:4a:4c:56:d4:20:f1:d5:a7:c1:53:2e:ff:7e:37:
|
|
||||||
17:cc:7e:74:bd:e2:22:33:ce:8c:77:62:a4:c5:3f:
|
|
||||||
44:35:7b:7e:b9:f5:7d:8c:7a:27:58:fd:2c:42:86:
|
|
||||||
2e:e7:6b:01:99:7b:fe:7d:a7:a1:4f:3e:39:39:54:
|
|
||||||
1f:61:de:74:66:d1:77:4f:43:1b:66:70:29:85:de:
|
|
||||||
fc:8f:8e:1b:7b:a2:66:48:26:7f:9b:a6:fd:4a:e4:
|
|
||||||
dc:eb:ed:bd:f8:e3:f1:57:98:13:6f:f1:a3:2a:e3:
|
|
||||||
73:bd:8d:7c:6f:4b:59:35:bc:b5:42:3e:99:a7:13:
|
|
||||||
8d:be:2e:5c:9a:c6:5b:ab:ae:bf:00:e9:c8:ee:05:
|
|
||||||
22:8e:d5:67:1a:47:9a:6d:9c:f9:42:3e:15:34:f8:
|
|
||||||
31:ec:b4:7e:d3:92:95:b0:b8:f9:66:f3:bd:1d:31:
|
|
||||||
2c:b1:90:62:a1:f8:4e:a6:5d:26:22:f0:e1:fe:16:
|
|
||||||
2b:69
|
|
||||||
Exponent: 65537 (0x10001)
|
|
||||||
X509v3 extensions:
|
|
||||||
X509v3 Subject Key Identifier:
|
|
||||||
CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
|
||||||
X509v3 Authority Key Identifier:
|
|
||||||
keyid:CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
|
||||||
|
|
||||||
X509v3 Basic Constraints:
|
|
||||||
CA:TRUE
|
|
||||||
Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
df:fd:74:29:5b:5e:9a:8b:09:02:40:59:73:cb:71:47:3f:97:
|
|
||||||
3d:a9:fd:c4:8c:01:29:c9:86:b8:71:55:ff:72:0e:50:dc:c8:
|
|
||||||
b5:e6:91:41:52:47:21:30:cc:4d:e7:3b:4b:db:55:ea:7d:46:
|
|
||||||
eb:53:e0:b7:1b:80:7c:b1:0c:d3:d1:bc:a0:73:ae:96:1f:fd:
|
|
||||||
05:52:7e:54:d5:03:52:69:7b:34:5f:27:d7:98:da:98:76:73:
|
|
||||||
e6:bb:50:59:2a:94:90:67:03:1c:a4:76:2f:ee:ef:59:60:09:
|
|
||||||
48:33:03:2b:52:ed:83:42:f8:71:19:7f:d8:be:40:ed:20:01:
|
|
||||||
90:3c:7e:1c:8b:d2:9f:f3:2f:09:1f:50:c8:10:e1:8a:d9:a5:
|
|
||||||
49:9c:0b:74:17:b9:2b:68:f6:1e:73:c2:73:10:38:b3:35:e2:
|
|
||||||
87:91:1b:a1:d1:9b:81:9d:1b:32:cc:03:6e:4c:82:95:81:11:
|
|
||||||
42:56:e2:16:2b:22:65:db:40:2c:ca:dc:03:f4:d5:07:cf:f5:
|
|
||||||
13:b2:cf:51:5b:24:cd:c7:d1:9b:42:8e:f9:df:5d:1e:5a:09:
|
|
||||||
a3:4f:a9:0b:f4:21:c5:bb:ff:02:93:67:e8:2d:ee:ab:d9:59:
|
|
||||||
76:03:2c:a1:bd:fb:dc:af:b6:82:94:71:85:53:a8:18:0d:3a:
|
|
||||||
9e:42:eb:59
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIIDfzCCAmegAwIBAgIJANBNI4XuWbP6MA0GCSqGSIb3DQEBCwUAMFYxDzANBgNV
|
|
||||||
BAMMBmNhY2VydDELMAkGA1UEBhMCRkkxETAPBgNVBAgMCEhlbHNpbmtpMREwDwYD
|
|
||||||
VQQHDAhIZWxzaW5raTEQMA4GA1UECgwHTWFyaWFEQjAeFw0xOTAxMjcxMDExMTBa
|
|
||||||
Fw0zOTAxMjIxMDExMTBaMFYxDzANBgNVBAMMBmNhY2VydDELMAkGA1UEBhMCRkkx
|
|
||||||
ETAPBgNVBAgMCEhlbHNpbmtpMREwDwYDVQQHDAhIZWxzaW5raTEQMA4GA1UECgwH
|
|
||||||
TWFyaWFEQjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOgOp4TTdTAG
|
|
||||||
MLIQudGINite+MhEV8tncquWlTPViNGPI1CYum0gAIC9NdXBv5hJxAoVSjSmIZsu
|
|
||||||
jBUJ8GOBAsJ84lPg96EaQF6PQUpMVtQg8dWnwVMu/343F8x+dL3iIjPOjHdipMU/
|
|
||||||
RDV7frn1fYx6J1j9LEKGLudrAZl7/n2noU8+OTlUH2HedGbRd09DG2ZwKYXe/I+O
|
|
||||||
G3uiZkgmf5um/Urk3Ovtvfjj8VeYE2/xoyrjc72NfG9LWTW8tUI+macTjb4uXJrG
|
|
||||||
W6uuvwDpyO4FIo7VZxpHmm2c+UI+FTT4Mey0ftOSlbC4+WbzvR0xLLGQYqH4TqZd
|
|
||||||
JiLw4f4WK2kCAwEAAaNQME4wHQYDVR0OBBYEFMpxmYnwcqt1ZrtlagMEcqV7laaT
|
|
||||||
MB8GA1UdIwQYMBaAFMpxmYnwcqt1ZrtlagMEcqV7laaTMAwGA1UdEwQFMAMBAf8w
|
|
||||||
DQYJKoZIhvcNAQELBQADggEBAN/9dClbXpqLCQJAWXPLcUc/lz2p/cSMASnJhrhx
|
|
||||||
Vf9yDlDcyLXmkUFSRyEwzE3nO0vbVep9RutT4LcbgHyxDNPRvKBzrpYf/QVSflTV
|
|
||||||
A1JpezRfJ9eY2ph2c+a7UFkqlJBnAxykdi/u71lgCUgzAytS7YNC+HEZf9i+QO0g
|
|
||||||
AZA8fhyL0p/zLwkfUMgQ4YrZpUmcC3QXuSto9h5zwnMQOLM14oeRG6HRm4GdGzLM
|
|
||||||
A25MgpWBEUJW4hYrImXbQCzK3AP01QfP9ROyz1FbJM3H0ZtCjvnfXR5aCaNPqQv0
|
|
||||||
IcW7/wKTZ+gt7qvZWXYDLKG9+9yvtoKUcYVTqBgNOp5C61k=
|
|
||||||
-----END CERTIFICATE-----
|
|
@@ -1 +0,0 @@
|
|||||||
cacert.pem
|
|
79
mysql-test/std_data/capath/ed1f42db.0
Normal file
79
mysql-test/std_data/capath/ed1f42db.0
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
Certificate:
|
||||||
|
Data:
|
||||||
|
Version: 3 (0x2)
|
||||||
|
Serial Number:
|
||||||
|
d0:4d:23:85:ee:59:b3:fa
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
Issuer: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
||||||
|
Validity
|
||||||
|
Not Before: Jan 27 10:11:10 2019 GMT
|
||||||
|
Not After : Jan 22 10:11:10 2039 GMT
|
||||||
|
Subject: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB
|
||||||
|
Subject Public Key Info:
|
||||||
|
Public Key Algorithm: rsaEncryption
|
||||||
|
Public-Key: (2048 bit)
|
||||||
|
Modulus:
|
||||||
|
00:e8:0e:a7:84:d3:75:30:06:30:b2:10:b9:d1:88:
|
||||||
|
36:2b:5e:f8:c8:44:57:cb:67:72:ab:96:95:33:d5:
|
||||||
|
88:d1:8f:23:50:98:ba:6d:20:00:80:bd:35:d5:c1:
|
||||||
|
bf:98:49:c4:0a:15:4a:34:a6:21:9b:2e:8c:15:09:
|
||||||
|
f0:63:81:02:c2:7c:e2:53:e0:f7:a1:1a:40:5e:8f:
|
||||||
|
41:4a:4c:56:d4:20:f1:d5:a7:c1:53:2e:ff:7e:37:
|
||||||
|
17:cc:7e:74:bd:e2:22:33:ce:8c:77:62:a4:c5:3f:
|
||||||
|
44:35:7b:7e:b9:f5:7d:8c:7a:27:58:fd:2c:42:86:
|
||||||
|
2e:e7:6b:01:99:7b:fe:7d:a7:a1:4f:3e:39:39:54:
|
||||||
|
1f:61:de:74:66:d1:77:4f:43:1b:66:70:29:85:de:
|
||||||
|
fc:8f:8e:1b:7b:a2:66:48:26:7f:9b:a6:fd:4a:e4:
|
||||||
|
dc:eb:ed:bd:f8:e3:f1:57:98:13:6f:f1:a3:2a:e3:
|
||||||
|
73:bd:8d:7c:6f:4b:59:35:bc:b5:42:3e:99:a7:13:
|
||||||
|
8d:be:2e:5c:9a:c6:5b:ab:ae:bf:00:e9:c8:ee:05:
|
||||||
|
22:8e:d5:67:1a:47:9a:6d:9c:f9:42:3e:15:34:f8:
|
||||||
|
31:ec:b4:7e:d3:92:95:b0:b8:f9:66:f3:bd:1d:31:
|
||||||
|
2c:b1:90:62:a1:f8:4e:a6:5d:26:22:f0:e1:fe:16:
|
||||||
|
2b:69
|
||||||
|
Exponent: 65537 (0x10001)
|
||||||
|
X509v3 extensions:
|
||||||
|
X509v3 Subject Key Identifier:
|
||||||
|
CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
||||||
|
X509v3 Authority Key Identifier:
|
||||||
|
keyid:CA:71:99:89:F0:72:AB:75:66:BB:65:6A:03:04:72:A5:7B:95:A6:93
|
||||||
|
|
||||||
|
X509v3 Basic Constraints:
|
||||||
|
CA:TRUE
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
df:fd:74:29:5b:5e:9a:8b:09:02:40:59:73:cb:71:47:3f:97:
|
||||||
|
3d:a9:fd:c4:8c:01:29:c9:86:b8:71:55:ff:72:0e:50:dc:c8:
|
||||||
|
b5:e6:91:41:52:47:21:30:cc:4d:e7:3b:4b:db:55:ea:7d:46:
|
||||||
|
eb:53:e0:b7:1b:80:7c:b1:0c:d3:d1:bc:a0:73:ae:96:1f:fd:
|
||||||
|
05:52:7e:54:d5:03:52:69:7b:34:5f:27:d7:98:da:98:76:73:
|
||||||
|
e6:bb:50:59:2a:94:90:67:03:1c:a4:76:2f:ee:ef:59:60:09:
|
||||||
|
48:33:03:2b:52:ed:83:42:f8:71:19:7f:d8:be:40:ed:20:01:
|
||||||
|
90:3c:7e:1c:8b:d2:9f:f3:2f:09:1f:50:c8:10:e1:8a:d9:a5:
|
||||||
|
49:9c:0b:74:17:b9:2b:68:f6:1e:73:c2:73:10:38:b3:35:e2:
|
||||||
|
87:91:1b:a1:d1:9b:81:9d:1b:32:cc:03:6e:4c:82:95:81:11:
|
||||||
|
42:56:e2:16:2b:22:65:db:40:2c:ca:dc:03:f4:d5:07:cf:f5:
|
||||||
|
13:b2:cf:51:5b:24:cd:c7:d1:9b:42:8e:f9:df:5d:1e:5a:09:
|
||||||
|
a3:4f:a9:0b:f4:21:c5:bb:ff:02:93:67:e8:2d:ee:ab:d9:59:
|
||||||
|
76:03:2c:a1:bd:fb:dc:af:b6:82:94:71:85:53:a8:18:0d:3a:
|
||||||
|
9e:42:eb:59
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDfzCCAmegAwIBAgIJANBNI4XuWbP6MA0GCSqGSIb3DQEBCwUAMFYxDzANBgNV
|
||||||
|
BAMMBmNhY2VydDELMAkGA1UEBhMCRkkxETAPBgNVBAgMCEhlbHNpbmtpMREwDwYD
|
||||||
|
VQQHDAhIZWxzaW5raTEQMA4GA1UECgwHTWFyaWFEQjAeFw0xOTAxMjcxMDExMTBa
|
||||||
|
Fw0zOTAxMjIxMDExMTBaMFYxDzANBgNVBAMMBmNhY2VydDELMAkGA1UEBhMCRkkx
|
||||||
|
ETAPBgNVBAgMCEhlbHNpbmtpMREwDwYDVQQHDAhIZWxzaW5raTEQMA4GA1UECgwH
|
||||||
|
TWFyaWFEQjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOgOp4TTdTAG
|
||||||
|
MLIQudGINite+MhEV8tncquWlTPViNGPI1CYum0gAIC9NdXBv5hJxAoVSjSmIZsu
|
||||||
|
jBUJ8GOBAsJ84lPg96EaQF6PQUpMVtQg8dWnwVMu/343F8x+dL3iIjPOjHdipMU/
|
||||||
|
RDV7frn1fYx6J1j9LEKGLudrAZl7/n2noU8+OTlUH2HedGbRd09DG2ZwKYXe/I+O
|
||||||
|
G3uiZkgmf5um/Urk3Ovtvfjj8VeYE2/xoyrjc72NfG9LWTW8tUI+macTjb4uXJrG
|
||||||
|
W6uuvwDpyO4FIo7VZxpHmm2c+UI+FTT4Mey0ftOSlbC4+WbzvR0xLLGQYqH4TqZd
|
||||||
|
JiLw4f4WK2kCAwEAAaNQME4wHQYDVR0OBBYEFMpxmYnwcqt1ZrtlagMEcqV7laaT
|
||||||
|
MB8GA1UdIwQYMBaAFMpxmYnwcqt1ZrtlagMEcqV7laaTMAwGA1UdEwQFMAMBAf8w
|
||||||
|
DQYJKoZIhvcNAQELBQADggEBAN/9dClbXpqLCQJAWXPLcUc/lz2p/cSMASnJhrhx
|
||||||
|
Vf9yDlDcyLXmkUFSRyEwzE3nO0vbVep9RutT4LcbgHyxDNPRvKBzrpYf/QVSflTV
|
||||||
|
A1JpezRfJ9eY2ph2c+a7UFkqlJBnAxykdi/u71lgCUgzAytS7YNC+HEZf9i+QO0g
|
||||||
|
AZA8fhyL0p/zLwkfUMgQ4YrZpUmcC3QXuSto9h5zwnMQOLM14oeRG6HRm4GdGzLM
|
||||||
|
A25MgpWBEUJW4hYrImXbQCzK3AP01QfP9ROyz1FbJM3H0ZtCjvnfXR5aCaNPqQv0
|
||||||
|
IcW7/wKTZ+gt7qvZWXYDLKG9+9yvtoKUcYVTqBgNOp5C61k=
|
||||||
|
-----END CERTIFICATE-----
|
@@ -1,4 +1,3 @@
|
|||||||
-- source include/have_log_bin.inc
|
|
||||||
|
|
||||||
# We change binlog format inside the test, so no need to re-run with
|
# We change binlog format inside the test, so no need to re-run with
|
||||||
# more than one binlog_format.
|
# more than one binlog_format.
|
||||||
@@ -9,13 +8,9 @@
|
|||||||
|
|
||||||
# save status
|
# save status
|
||||||
|
|
||||||
let $oblf=`select @@SESSION.BINLOG_FORMAT`;
|
|
||||||
let $otfc=`select @@log_bin_trust_function_creators`;
|
let $otfc=`select @@log_bin_trust_function_creators`;
|
||||||
|
|
||||||
set global log_bin_trust_function_creators=0;
|
set global log_bin_trust_function_creators=0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# fail *on definition*
|
# fail *on definition*
|
||||||
|
|
||||||
set binlog_format=STATEMENT;
|
set binlog_format=STATEMENT;
|
||||||
@@ -186,6 +181,7 @@ drop function fn16456;
|
|||||||
# restore status
|
# restore status
|
||||||
|
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
eval set binlog_format=$oblf;
|
set binlog_format=STATEMENT;
|
||||||
eval set global log_bin_trust_function_creators=$otfc;
|
eval set global log_bin_trust_function_creators=$otfc;
|
||||||
|
reset master;
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
@@ -15,6 +15,14 @@ galera_gtid_2_cluster : MDEV-23775 Galera test failure on galera_3nodes.galera_g
|
|||||||
galera_ist_gcache_rollover : MDEV-23578 WSREP: exception caused by message: {v=0,t=1,ut=255,o=4,s=0,sr=0,as=1,f=6,src=50524cfe,srcvid=view_id(REG,50524cfe,4),insvid=view_id(UNKNOWN,00000000,0),ru=00000000,r=[-1,-1],fs=75,nl=(}
|
galera_ist_gcache_rollover : MDEV-23578 WSREP: exception caused by message: {v=0,t=1,ut=255,o=4,s=0,sr=0,as=1,f=6,src=50524cfe,srcvid=view_id(REG,50524cfe,4),insvid=view_id(UNKNOWN,00000000,0),ru=00000000,r=[-1,-1],fs=75,nl=(}
|
||||||
galera_load_data_ist : MDEV-24639 galera_3nodes.galera_load_data_ist MTR failed with SIGABRT: query 'reap' failed: 2013: Lost connection to MySQL server during query
|
galera_load_data_ist : MDEV-24639 galera_3nodes.galera_load_data_ist MTR failed with SIGABRT: query 'reap' failed: 2013: Lost connection to MySQL server during query
|
||||||
galera_load_data_ist : MDEV-24639 galera_3nodes.galera_load_data_ist MTR failed with SIGABRT: query 'reap' failed: 2013: Lost connection to MySQL server during query
|
galera_load_data_ist : MDEV-24639 galera_3nodes.galera_load_data_ist MTR failed with SIGABRT: query 'reap' failed: 2013: Lost connection to MySQL server during query
|
||||||
|
galera_pc_bootstrap : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
galera_safe_to_bootstrap : MDEV-24097 galera_3nodes.galera_safe_to_bootstrap MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
galera_safe_to_bootstrap : MDEV-24097 galera_3nodes.galera_safe_to_bootstrap MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
galera_slave_options_do : MDEV-8798
|
galera_slave_options_do : MDEV-8798
|
||||||
galera_slave_options_ignore : MDEV-8798
|
galera_slave_options_ignore : MDEV-8798
|
||||||
|
galera_ipv6_mariabackup : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_ipv6_mariabackup_section : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_ipv6_rsync : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_ipv6_rsync_section : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_ssl_reload : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_toi_vote : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
galera_wsrep_schema_init : MDEV-24097 MTR sporadaically fails: Failed to start mysqld or mysql_shutdown failed
|
||||||
|
@@ -14,7 +14,6 @@ WHERE engine = 'innodb'
|
|||||||
AND support IN ('YES', 'DEFAULT', 'ENABLED');
|
AND support IN ('YES', 'DEFAULT', 'ENABLED');
|
||||||
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
||||||
FOUND 1 /File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+/ in mysqld.1.err
|
FOUND 1 /File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+/ in mysqld.1.err
|
||||||
# Remove ibdata1 & ibdata2
|
|
||||||
# Successfully let InnoDB create tablespaces
|
# Successfully let InnoDB create tablespaces
|
||||||
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES
|
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES
|
||||||
WHERE engine='innodb'
|
WHERE engine='innodb'
|
||||||
|
@@ -136,6 +136,7 @@ show tables;
|
|||||||
Tables_in_test
|
Tables_in_test
|
||||||
create temporary table t1 (keyc int, c1 char(100), c2 char(100)) engine = innodb;
|
create temporary table t1 (keyc int, c1 char(100), c2 char(100)) engine = innodb;
|
||||||
ERROR HY000: Can't create table `test`.`t1` (errno: 165 "Table is read only")
|
ERROR HY000: Can't create table `test`.`t1` (errno: 165 "Table is read only")
|
||||||
|
SET GLOBAL innodb_encrypt_tables=DEFAULT;
|
||||||
# test various bad start-up parameters
|
# test various bad start-up parameters
|
||||||
FOUND 2 /InnoDB: Unable to create temporary file/ in mysqld.1.err
|
FOUND 2 /InnoDB: Unable to create temporary file/ in mysqld.1.err
|
||||||
FOUND 1 /innodb_temporary and innodb_system file names seem to be the same/ in mysqld.1.err
|
FOUND 1 /innodb_temporary and innodb_system file names seem to be the same/ in mysqld.1.err
|
||||||
|
@@ -67,9 +67,6 @@ eval $check_no_innodb;
|
|||||||
let SEARCH_PATTERN=File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+;
|
let SEARCH_PATTERN=File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+;
|
||||||
--source include/search_pattern_in_file.inc
|
--source include/search_pattern_in_file.inc
|
||||||
|
|
||||||
--echo # Remove ibdata1 & ibdata2
|
|
||||||
--remove_file $bugdir/ibdata1
|
|
||||||
--remove_file $bugdir/ibdata2
|
|
||||||
--list_files $bugdir
|
--list_files $bugdir
|
||||||
|
|
||||||
--echo # Successfully let InnoDB create tablespaces
|
--echo # Successfully let InnoDB create tablespaces
|
||||||
|
@@ -121,6 +121,8 @@ show tables;
|
|||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create temporary table t1 (keyc int, c1 char(100), c2 char(100)) engine = innodb;
|
create temporary table t1 (keyc int, c1 char(100), c2 char(100)) engine = innodb;
|
||||||
|
|
||||||
|
SET GLOBAL innodb_encrypt_tables=DEFAULT;
|
||||||
|
|
||||||
--echo # test various bad start-up parameters
|
--echo # test various bad start-up parameters
|
||||||
|
|
||||||
let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err;
|
let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err;
|
||||||
|
@@ -356,9 +356,29 @@ ulonglong my_timer_microseconds(void)
|
|||||||
milliseconds.
|
milliseconds.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(HAVE_CLOCK_GETTIME)
|
||||||
|
#if defined(CLOCK_MONOTONIC_FAST)
|
||||||
|
/* FreeBSD */
|
||||||
|
#define MY_CLOCK_ID CLOCK_MONOTONIC_FAST
|
||||||
|
#elif defined(CLOCK_MONOTONIC_COARSE)
|
||||||
|
/* Linux */
|
||||||
|
#define MY_CLOCK_ID CLOCK_MONOTONIC_COARSE
|
||||||
|
#elif defined(CLOCK_MONOTONIC)
|
||||||
|
/* POSIX (includes OSX) */
|
||||||
|
#define MY_CLOCK_ID CLOCK_MONOTONIC
|
||||||
|
#elif defined(CLOCK_REALTIME)
|
||||||
|
/* Solaris (which doesn't seem to have MONOTONIC) */
|
||||||
|
#define MY_CLOCK_ID CLOCK_REALTIME
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
ulonglong my_timer_milliseconds(void)
|
ulonglong my_timer_milliseconds(void)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_SYS_TIMEB_H) && defined(HAVE_FTIME)
|
#if defined(MY_CLOCK_ID)
|
||||||
|
struct timespec tp;
|
||||||
|
clock_gettime(MY_CLOCK_ID, &tp);
|
||||||
|
return (ulonglong)tp.tv_sec * 1000 + (ulonglong)tp.tv_nsec / 1000000;
|
||||||
|
#elif defined(HAVE_SYS_TIMEB_H) && defined(HAVE_FTIME)
|
||||||
/* ftime() is obsolete but maybe the platform is old */
|
/* ftime() is obsolete but maybe the platform is old */
|
||||||
struct timeb ft;
|
struct timeb ft;
|
||||||
ftime(&ft);
|
ftime(&ft);
|
||||||
@@ -631,7 +651,9 @@ void my_timer_init(MY_TIMER_INFO *mti)
|
|||||||
|
|
||||||
/* milliseconds */
|
/* milliseconds */
|
||||||
mti->milliseconds.frequency= 1000; /* initial assumption */
|
mti->milliseconds.frequency= 1000; /* initial assumption */
|
||||||
#if defined(HAVE_SYS_TIMEB_H) && defined(HAVE_FTIME)
|
#ifdef MY_CLOCK_ID
|
||||||
|
mti->milliseconds.routine= MY_TIMER_ROUTINE_CLOCK_GETTIME;
|
||||||
|
#elif defined(HAVE_SYS_TIMEB_H) && defined(HAVE_FTIME)
|
||||||
mti->milliseconds.routine= MY_TIMER_ROUTINE_FTIME;
|
mti->milliseconds.routine= MY_TIMER_ROUTINE_FTIME;
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
mti->milliseconds.routine= MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME;
|
mti->milliseconds.routine= MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME;
|
||||||
|
@@ -1111,7 +1111,7 @@ verify_ca_matches_cert()
|
|||||||
[ -n "$ca" ] && [ ! -r "$ca" ] && readable=0
|
[ -n "$ca" ] && [ ! -r "$ca" ] && readable=0
|
||||||
[ -n "$cap" ] && [ ! -r "$cap" ] && readable=0
|
[ -n "$cap" ] && [ ! -r "$cap" ] && readable=0
|
||||||
|
|
||||||
if [ readable -eq 0 ]; then
|
if [ $readable -eq 0 ]; then
|
||||||
wsrep_log_error \
|
wsrep_log_error \
|
||||||
"Both PEM file and CA file (or path) must be readable"
|
"Both PEM file and CA file (or path) must be readable"
|
||||||
exit 22
|
exit 22
|
||||||
|
@@ -368,6 +368,7 @@ ADD_CUSTOM_TARGET(
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/lex_token.h
|
${CMAKE_CURRENT_BINARY_DIR}/lex_token.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc
|
${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc
|
||||||
)
|
)
|
||||||
|
ADD_DEPENDENCIES(sql GenServerSource)
|
||||||
|
|
||||||
IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
|
IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
|
||||||
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
|
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
|
||||||
|
@@ -551,8 +551,8 @@ int main(int argc, char **argv)
|
|||||||
if (WaitForSingleObject(mysqld_process, 0) != WAIT_TIMEOUT)
|
if (WaitForSingleObject(mysqld_process, 0) != WAIT_TIMEOUT)
|
||||||
die("mysqld.exe did not start");
|
die("mysqld.exe did not start");
|
||||||
|
|
||||||
if (run_tool(P_WAIT, mysqladmin_path, "--protocol=pipe",
|
if (run_tool(P_WAIT, mysqladmin_path, "--protocol=pipe", socket_param,
|
||||||
socket_param, "ping", NULL) == 0)
|
"ping", "--no-beep", NULL) == 0)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -1410,12 +1410,13 @@ static MYSQL_SOCKET unix_sock, base_ip_sock, extra_ip_sock;
|
|||||||
struct my_rnd_struct sql_rand; ///< used by sql_class.cc:THD::THD()
|
struct my_rnd_struct sql_rand; ///< used by sql_class.cc:THD::THD()
|
||||||
|
|
||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
|
C_MODE_START
|
||||||
|
#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE
|
||||||
/**
|
/**
|
||||||
Error reporter that buffer log messages.
|
Error reporter that buffer log messages.
|
||||||
@param level log message level
|
@param level log message level
|
||||||
@param format log message format string
|
@param format log message format string
|
||||||
*/
|
*/
|
||||||
C_MODE_START
|
|
||||||
static void buffered_option_error_reporter(enum loglevel level,
|
static void buffered_option_error_reporter(enum loglevel level,
|
||||||
const char *format, ...)
|
const char *format, ...)
|
||||||
{
|
{
|
||||||
@@ -1427,6 +1428,7 @@ static void buffered_option_error_reporter(enum loglevel level,
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
buffered_logs.buffer(level, buffer);
|
buffered_logs.buffer(level, buffer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -5900,7 +5902,7 @@ int mysqld_main(int argc, char **argv)
|
|||||||
Initialize the array of performance schema instrument configurations.
|
Initialize the array of performance schema instrument configurations.
|
||||||
*/
|
*/
|
||||||
init_pfs_instrument_array();
|
init_pfs_instrument_array();
|
||||||
#endif /* WITH_PERFSCHEMA_STORAGE_ENGINE */
|
|
||||||
/*
|
/*
|
||||||
Logs generated while parsing the command line
|
Logs generated while parsing the command line
|
||||||
options are buffered and printed later.
|
options are buffered and printed later.
|
||||||
@@ -5908,7 +5910,7 @@ int mysqld_main(int argc, char **argv)
|
|||||||
buffered_logs.init();
|
buffered_logs.init();
|
||||||
my_getopt_error_reporter= buffered_option_error_reporter;
|
my_getopt_error_reporter= buffered_option_error_reporter;
|
||||||
my_charset_error_reporter= buffered_option_error_reporter;
|
my_charset_error_reporter= buffered_option_error_reporter;
|
||||||
#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE
|
|
||||||
pfs_param.m_pfs_instrument= const_cast<char*>("");
|
pfs_param.m_pfs_instrument= const_cast<char*>("");
|
||||||
#endif /* WITH_PERFSCHEMA_STORAGE_ENGINE */
|
#endif /* WITH_PERFSCHEMA_STORAGE_ENGINE */
|
||||||
my_timer_init(&sys_timer_info);
|
my_timer_init(&sys_timer_info);
|
||||||
|
@@ -18406,6 +18406,8 @@ create_tmp_table(THD *thd, TMP_TABLE_PARAM *param, List<Item> &fields,
|
|||||||
MEM_CHECK_DEFINED(table->record[0], table->s->reclength);
|
MEM_CHECK_DEFINED(table->record[0], table->s->reclength);
|
||||||
MEM_CHECK_DEFINED(share->default_values, table->s->reclength);
|
MEM_CHECK_DEFINED(share->default_values, table->s->reclength);
|
||||||
|
|
||||||
|
empty_record(table);
|
||||||
|
table->status= STATUS_NO_RECORD;
|
||||||
thd->mem_root= mem_root_save;
|
thd->mem_root= mem_root_save;
|
||||||
|
|
||||||
DBUG_RETURN(table);
|
DBUG_RETURN(table);
|
||||||
@@ -19509,7 +19511,9 @@ bool instantiate_tmp_table(TABLE *table, KEY *keyinfo,
|
|||||||
if (create_internal_tmp_table(table, keyinfo, start_recinfo, recinfo,
|
if (create_internal_tmp_table(table, keyinfo, start_recinfo, recinfo,
|
||||||
options))
|
options))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
MEM_CHECK_DEFINED(table->record[0], table->s->reclength);
|
// Make empty record so random data is not written to disk
|
||||||
|
empty_record(table);
|
||||||
|
table->status= STATUS_NO_RECORD;
|
||||||
}
|
}
|
||||||
if (open_tmp_table(table))
|
if (open_tmp_table(table))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -22962,7 +22966,15 @@ check_reverse_order:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (select && select->quick)
|
else if (select && select->quick)
|
||||||
|
{
|
||||||
|
/* Cancel "Range checked for each record" */
|
||||||
|
if (tab->use_quick == 2)
|
||||||
|
{
|
||||||
|
tab->use_quick= 1;
|
||||||
|
tab->read_first_record= join_init_read_record;
|
||||||
|
}
|
||||||
select->quick->need_sorted_output();
|
select->quick->need_sorted_output();
|
||||||
|
}
|
||||||
|
|
||||||
tab->read_record.unlock_row= (tab->type == JT_EQ_REF) ?
|
tab->read_record.unlock_row= (tab->type == JT_EQ_REF) ?
|
||||||
join_read_key_unlock_row : rr_unlock_row;
|
join_read_key_unlock_row : rr_unlock_row;
|
||||||
|
@@ -2463,6 +2463,10 @@ void
|
|||||||
fil_crypt_set_encrypt_tables(
|
fil_crypt_set_encrypt_tables(
|
||||||
uint val)
|
uint val)
|
||||||
{
|
{
|
||||||
|
if (!fil_crypt_threads_inited) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mutex_enter(&fil_system.mutex);
|
mutex_enter(&fil_system.mutex);
|
||||||
|
|
||||||
srv_encrypt_tables = val;
|
srv_encrypt_tables = val;
|
||||||
|
@@ -420,6 +420,10 @@ create_log_files(
|
|||||||
return(DB_READ_ONLY);
|
return(DB_READ_ONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!log_set_capacity(srv_log_file_size_requested)) {
|
||||||
|
return(DB_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
/* Crashing after deleting the first file should be
|
/* Crashing after deleting the first file should be
|
||||||
recoverable. The buffer pool was clean, and we can simply
|
recoverable. The buffer pool was clean, and we can simply
|
||||||
create all log files from the scratch. */
|
create all log files from the scratch. */
|
||||||
@@ -476,9 +480,6 @@ create_log_files(
|
|||||||
}
|
}
|
||||||
|
|
||||||
log_sys.log.create(srv_n_log_files);
|
log_sys.log.create(srv_n_log_files);
|
||||||
if (!log_set_capacity(srv_log_file_size_requested)) {
|
|
||||||
return(DB_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
fil_open_log_and_system_tablespace_files();
|
fil_open_log_and_system_tablespace_files();
|
||||||
|
|
||||||
@@ -1732,6 +1733,12 @@ dberr_t srv_start(bool create_new_db)
|
|||||||
logfilename, dirnamelen, flushed_lsn, logfile0);
|
logfilename, dirnamelen, flushed_lsn, logfile0);
|
||||||
|
|
||||||
if (err != DB_SUCCESS) {
|
if (err != DB_SUCCESS) {
|
||||||
|
for (Tablespace::const_iterator
|
||||||
|
i = srv_sys_space.begin();
|
||||||
|
i != srv_sys_space.end(); i++) {
|
||||||
|
os_file_delete(innodb_data_file_key,
|
||||||
|
i->filepath());
|
||||||
|
}
|
||||||
return(srv_init_abort(err));
|
return(srv_init_abort(err));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@@ -179,10 +179,29 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
|
|||||||
long ssl_ctx_options= SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;
|
long ssl_ctx_options= SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;
|
||||||
DBUG_ENTER("new_VioSSLFd");
|
DBUG_ENTER("new_VioSSLFd");
|
||||||
|
|
||||||
if (ca_file && ! ca_file[0]) ca_file = NULL;
|
/*
|
||||||
if (ca_path && ! ca_path[0]) ca_path = NULL;
|
If some optional parameters indicate empty strings, then
|
||||||
if (crl_file && ! crl_file[0]) crl_file = NULL;
|
for compatibility with SSL libraries, replace them with NULL,
|
||||||
if (crl_path && ! crl_path[0]) crl_path = NULL;
|
otherwise these libraries will try to open files with an empty
|
||||||
|
name, etc., and they will return an error code instead performing
|
||||||
|
the necessary operations:
|
||||||
|
*/
|
||||||
|
if (ca_file && !ca_file[0])
|
||||||
|
{
|
||||||
|
ca_file = NULL;
|
||||||
|
}
|
||||||
|
if (ca_path && !ca_path[0])
|
||||||
|
{
|
||||||
|
ca_path = NULL;
|
||||||
|
}
|
||||||
|
if (crl_file && !crl_file[0])
|
||||||
|
{
|
||||||
|
crl_file = NULL;
|
||||||
|
}
|
||||||
|
if (crl_path && !crl_path[0])
|
||||||
|
{
|
||||||
|
crl_path = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
DBUG_PRINT("enter",
|
DBUG_PRINT("enter",
|
||||||
("key_file: '%s' cert_file: '%s' ca_file: '%s' ca_path: '%s' "
|
("key_file: '%s' cert_file: '%s' ca_file: '%s' ca_path: '%s' "
|
||||||
@@ -314,10 +333,29 @@ new_VioSSLConnectorFd(const char *key_file, const char *cert_file,
|
|||||||
struct st_VioSSLFd *ssl_fd;
|
struct st_VioSSLFd *ssl_fd;
|
||||||
int verify= SSL_VERIFY_PEER;
|
int verify= SSL_VERIFY_PEER;
|
||||||
|
|
||||||
if (ca_file && ! ca_file[0]) ca_file = NULL;
|
/*
|
||||||
if (ca_path && ! ca_path[0]) ca_path = NULL;
|
If some optional parameters indicate empty strings, then
|
||||||
if (crl_file && ! crl_file[0]) crl_file = NULL;
|
for compatibility with SSL libraries, replace them with NULL,
|
||||||
if (crl_path && ! crl_path[0]) crl_path = NULL;
|
otherwise these libraries will try to open files with an empty
|
||||||
|
name, etc., and they will return an error code instead performing
|
||||||
|
the necessary operations:
|
||||||
|
*/
|
||||||
|
if (ca_file && !ca_file[0])
|
||||||
|
{
|
||||||
|
ca_file = NULL;
|
||||||
|
}
|
||||||
|
if (ca_path && !ca_path[0])
|
||||||
|
{
|
||||||
|
ca_path = NULL;
|
||||||
|
}
|
||||||
|
if (crl_file && !crl_file[0])
|
||||||
|
{
|
||||||
|
crl_file = NULL;
|
||||||
|
}
|
||||||
|
if (crl_path && !crl_path[0])
|
||||||
|
{
|
||||||
|
crl_path = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Turn off verification of servers certificate if both
|
Turn off verification of servers certificate if both
|
||||||
@@ -351,10 +389,29 @@ new_VioSSLAcceptorFd(const char *key_file, const char *cert_file,
|
|||||||
struct st_VioSSLFd *ssl_fd;
|
struct st_VioSSLFd *ssl_fd;
|
||||||
int verify= SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE;
|
int verify= SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE;
|
||||||
|
|
||||||
if (ca_file && ! ca_file[0]) ca_file = NULL;
|
/*
|
||||||
if (ca_path && ! ca_path[0]) ca_path = NULL;
|
If some optional parameters indicate empty strings, then
|
||||||
if (crl_file && ! crl_file[0]) crl_file = NULL;
|
for compatibility with SSL libraries, replace them with NULL,
|
||||||
if (crl_path && ! crl_path[0]) crl_path = NULL;
|
otherwise these libraries will try to open files with an empty
|
||||||
|
name, etc., and they will return an error code instead performing
|
||||||
|
the necessary operations:
|
||||||
|
*/
|
||||||
|
if (ca_file && !ca_file[0])
|
||||||
|
{
|
||||||
|
ca_file = NULL;
|
||||||
|
}
|
||||||
|
if (ca_path && !ca_path[0])
|
||||||
|
{
|
||||||
|
ca_path = NULL;
|
||||||
|
}
|
||||||
|
if (crl_file && !crl_file[0])
|
||||||
|
{
|
||||||
|
crl_file = NULL;
|
||||||
|
}
|
||||||
|
if (crl_path && !crl_path[0])
|
||||||
|
{
|
||||||
|
crl_path = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(ssl_fd= new_VioSSLFd(key_file, cert_file, ca_file,
|
if (!(ssl_fd= new_VioSSLFd(key_file, cert_file, ca_file,
|
||||||
ca_path, cipher, FALSE, error,
|
ca_path, cipher, FALSE, error,
|
||||||
|
Reference in New Issue
Block a user