summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-07-23 16:34:04 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-07-23 16:34:04 +0300
commit058c385e0356c21a0dd2280eaddcf604c04ae48c (patch)
tree81752c56913d3b5837674588f3db120db373b188
parent3bcda8ad5f69538379ef0fed7715f23c1cf04380 (diff)
parent1f498f901b394e869c430b777fdc233ab98d428f (diff)
downloadmariadb-git-058c385e0356c21a0dd2280eaddcf604c04ae48c.tar.gz
Merge 10.1 into 10.2
-rw-r--r--mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled4
-rw-r--r--mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled4
-rw-r--r--storage/innobase/ut/ut0crc32.cc17
-rw-r--r--storage/innobase/ut/ut0ut.cc15
-rw-r--r--storage/xtradb/include/univ.i4
-rw-r--r--storage/xtradb/ut/ut0crc32.cc16
-rw-r--r--storage/xtradb/ut/ut0ut.cc14
7 files changed, 12 insertions, 62 deletions
diff --git a/mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled b/mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled
index 794e93a108b..8b8c69d05bf 100644
--- a/mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled
+++ b/mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled
@@ -1214,8 +1214,8 @@
COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_VERSION
SESSION_VALUE NULL
--GLOBAL_VALUE 5.6.44
-+GLOBAL_VALUE 5.6.43-84.3
+-GLOBAL_VALUE 5.6.45
++GLOBAL_VALUE 5.6.44-86.0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL
diff --git a/mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled b/mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled
index 195eda13c52..d5a5a0147f5 100644
--- a/mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled
+++ b/mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled
@@ -684,8 +684,8 @@
COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_VERSION
SESSION_VALUE NULL
--GLOBAL_VALUE 5.6.44
-+GLOBAL_VALUE 5.6.43-84.3
+-GLOBAL_VALUE 5.6.45
++GLOBAL_VALUE 5.6.44-86.0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL
diff --git a/storage/innobase/ut/ut0crc32.cc b/storage/innobase/ut/ut0crc32.cc
index 17201bb3051..44b1c4b30b4 100644
--- a/storage/innobase/ut/ut0crc32.cc
+++ b/storage/innobase/ut/ut0crc32.cc
@@ -716,23 +716,6 @@ ut_crc32_init()
ut_cpuid(vend, &model, &family, &stepping,
&features_ecx, &features_edx);
- /* Valgrind does not understand the CRC32 instructions:
-
- vex amd64->IR: unhandled instruction bytes: 0xF2 0x48 0xF 0x38 0xF0 0xA
- valgrind: Unrecognised instruction at address 0xad3db5.
- Your program just tried to execute an instruction that Valgrind
- did not recognise. There are two possible reasons for this.
- 1. Your program has a bug and erroneously jumped to a non-code
- location. If you are running Memcheck and you just saw a
- warning about a bad jump, it's probably your program's fault.
- 2. The instruction is legitimate but Valgrind doesn't handle it,
- i.e. it's Valgrind's fault. If you think this is the case or
- you are not sure, please let us know and we'll try to fix it.
- Either way, Valgrind will now raise a SIGILL signal which will
- probably kill your program.
-
- */
-
if (features_ecx & 1 << 20) {
ut_crc32 = ut_crc32_hw;
#ifdef INNODB_BUG_ENDIAN_CRC32
diff --git a/storage/innobase/ut/ut0ut.cc b/storage/innobase/ut/ut0ut.cc
index 846f9887dae..a0d51a178ca 100644
--- a/storage/innobase/ut/ut0ut.cc
+++ b/storage/innobase/ut/ut0ut.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2017, MariaDB Corporation.
+Copyright (c) 2017, 2019, MariaDB Corporation.
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
@@ -154,12 +154,7 @@ ut_time_us(
/*=======*/
uintmax_t* tloc) /*!< out: us since epoch, if non-NULL */
{
- struct timeval tv;
- uintmax_t us;
-
- ut_gettimeofday(&tv, NULL);
-
- us = static_cast<uintmax_t>(tv.tv_sec) * 1000000 + tv.tv_usec;
+ uintmax_t us = my_interval_timer() / 1000;
if (tloc != NULL) {
*tloc = us;
@@ -177,11 +172,7 @@ ulint
ut_time_ms(void)
/*============*/
{
- struct timeval tv;
-
- ut_gettimeofday(&tv, NULL);
-
- return((ulint) tv.tv_sec * 1000 + tv.tv_usec / 1000);
+ return static_cast<ulint>(my_interval_timer() / 1000000);
}
/**********************************************************//**
diff --git a/storage/xtradb/include/univ.i b/storage/xtradb/include/univ.i
index 6d5820fabb5..69d5cbac5d1 100644
--- a/storage/xtradb/include/univ.i
+++ b/storage/xtradb/include/univ.i
@@ -45,10 +45,10 @@ Created 1/20/1994 Heikki Tuuri
#define INNODB_VERSION_MAJOR 5
#define INNODB_VERSION_MINOR 6
-#define INNODB_VERSION_BUGFIX 43
+#define INNODB_VERSION_BUGFIX 44
#ifndef PERCONA_INNODB_VERSION
-#define PERCONA_INNODB_VERSION 84.3
+#define PERCONA_INNODB_VERSION 86.0
#endif
/* Enable UNIV_LOG_ARCHIVE in XtraDB */
diff --git a/storage/xtradb/ut/ut0crc32.cc b/storage/xtradb/ut/ut0crc32.cc
index 4788beb665e..4bb2a865ffe 100644
--- a/storage/xtradb/ut/ut0crc32.cc
+++ b/storage/xtradb/ut/ut0crc32.cc
@@ -314,22 +314,6 @@ ut_crc32_init()
ut_cpuid(vend, &model, &family, &stepping,
&features_ecx, &features_edx);
- /* Valgrind does not understand the CRC32 instructions:
-
- vex amd64->IR: unhandled instruction bytes: 0xF2 0x48 0xF 0x38 0xF0 0xA
- valgrind: Unrecognised instruction at address 0xad3db5.
- Your program just tried to execute an instruction that Valgrind
- did not recognise. There are two possible reasons for this.
- 1. Your program has a bug and erroneously jumped to a non-code
- location. If you are running Memcheck and you just saw a
- warning about a bad jump, it's probably your program's fault.
- 2. The instruction is legitimate but Valgrind doesn't handle it,
- i.e. it's Valgrind's fault. If you think this is the case or
- you are not sure, please let us know and we'll try to fix it.
- Either way, Valgrind will now raise a SIGILL signal which will
- probably kill your program.
-
- */
if ((features_ecx >> 20) & 1) {
ut_crc32 = ut_crc32_sse42;
ut_crc32_implementation = "Using SSE2 crc32 instructions";
diff --git a/storage/xtradb/ut/ut0ut.cc b/storage/xtradb/ut/ut0ut.cc
index 7b76d968e28..eda3921c5de 100644
--- a/storage/xtradb/ut/ut0ut.cc
+++ b/storage/xtradb/ut/ut0ut.cc
@@ -1,6 +1,7 @@
/*****************************************************************************
Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 2019, MariaDB Corporation.
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
@@ -189,12 +190,7 @@ ut_time_us(
/*=======*/
ullint* tloc) /*!< out: us since epoch, if non-NULL */
{
- struct timeval tv;
- ullint us;
-
- ut_gettimeofday(&tv, NULL);
-
- us = (ullint) tv.tv_sec * 1000000 + tv.tv_usec;
+ ullint us = my_interval_timer() / 1000;
if (tloc != NULL) {
*tloc = us;
@@ -213,11 +209,7 @@ ulint
ut_time_ms(void)
/*============*/
{
- struct timeval tv;
-
- ut_gettimeofday(&tv, NULL);
-
- return((ulint) tv.tv_sec * 1000 + tv.tv_usec / 1000);
+ return static_cast<ulint>(my_interval_timer() / 1000000);
}
#endif /* !UNIV_HOTBACKUP */