summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-05-24 11:43:32 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-05-24 11:43:32 +0300
commitc38cc3165df37eac1401d615c4f2c68d3e192a5f (patch)
tree1f3102d7b0d0fc4a4248c8e540cc9d56e770e3fd
parente744c687ca2c2523b63d5ac0066276a6cb3e932f (diff)
parenta61724a3ca187f6eb44fc67948acb76a94efa783 (diff)
downloadmariadb-git-c38cc3165df37eac1401d615c4f2c68d3e192a5f.tar.gz
Merge 10.0 into 10.1
-rw-r--r--storage/innobase/handler/i_s.cc28
-rw-r--r--storage/xtradb/handler/i_s.cc28
2 files changed, 38 insertions, 18 deletions
diff --git a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc
index 2c82c1b4931..31bb984f196 100644
--- a/storage/innobase/handler/i_s.cc
+++ b/storage/innobase/handler/i_s.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 2007, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2014, 2017, MariaDB Corporation.
+Copyright (c) 2014, 2018, 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
@@ -4935,9 +4935,11 @@ i_s_innodb_buffer_page_fill(
mutex_enter(&dict_sys->mutex);
- if (const dict_index_t* index =
- dict_index_get_if_in_cache_low(
- page_info->index_id)) {
+ const dict_index_t* index =
+ dict_index_get_if_in_cache_low(
+ page_info->index_id);
+
+ if (index) {
table_name_end = innobase_convert_name(
table_name, sizeof(table_name),
index->table_name,
@@ -4960,7 +4962,10 @@ i_s_innodb_buffer_page_fill(
OK(ret);
- fields[IDX_BUFFER_PAGE_TABLE_NAME]->set_notnull();
+ if (index) {
+ fields[IDX_BUFFER_PAGE_TABLE_NAME]
+ ->set_notnull();
+ }
}
OK(fields[IDX_BUFFER_PAGE_NUM_RECS]->store(
@@ -5637,9 +5642,11 @@ i_s_innodb_buf_page_lru_fill(
mutex_enter(&dict_sys->mutex);
- if (const dict_index_t* index =
- dict_index_get_if_in_cache_low(
- page_info->index_id)) {
+ const dict_index_t* index =
+ dict_index_get_if_in_cache_low(
+ page_info->index_id);
+
+ if (index) {
table_name_end = innobase_convert_name(
table_name, sizeof(table_name),
index->table_name,
@@ -5662,7 +5669,10 @@ i_s_innodb_buf_page_lru_fill(
OK(ret);
- fields[IDX_BUF_LRU_PAGE_TABLE_NAME]->set_notnull();
+ if (index) {
+ fields[IDX_BUF_LRU_PAGE_TABLE_NAME]
+ ->set_notnull();
+ }
}
OK(fields[IDX_BUF_LRU_PAGE_NUM_RECS]->store(
diff --git a/storage/xtradb/handler/i_s.cc b/storage/xtradb/handler/i_s.cc
index 94cd6f29558..dc4fa99fc56 100644
--- a/storage/xtradb/handler/i_s.cc
+++ b/storage/xtradb/handler/i_s.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 2007, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2014, 2017, MariaDB Corporation.
+Copyright (c) 2014, 2018, 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
@@ -4922,9 +4922,11 @@ i_s_innodb_buffer_page_fill(
mutex_enter(&dict_sys->mutex);
- if (const dict_index_t* index =
- dict_index_get_if_in_cache_low(
- page_info->index_id)) {
+ const dict_index_t* index =
+ dict_index_get_if_in_cache_low(
+ page_info->index_id);
+
+ if (index) {
table_name_end = innobase_convert_name(
table_name, sizeof(table_name),
index->table_name,
@@ -4947,7 +4949,10 @@ i_s_innodb_buffer_page_fill(
OK(ret);
- fields[IDX_BUFFER_PAGE_TABLE_NAME]->set_notnull();
+ if (index) {
+ fields[IDX_BUFFER_PAGE_TABLE_NAME]
+ ->set_notnull();
+ }
}
OK(fields[IDX_BUFFER_PAGE_NUM_RECS]->store(
@@ -5621,9 +5626,11 @@ i_s_innodb_buf_page_lru_fill(
mutex_enter(&dict_sys->mutex);
- if (const dict_index_t* index =
- dict_index_get_if_in_cache_low(
- page_info->index_id)) {
+ const dict_index_t* index =
+ dict_index_get_if_in_cache_low(
+ page_info->index_id);
+
+ if (index) {
table_name_end = innobase_convert_name(
table_name, sizeof(table_name),
index->table_name,
@@ -5646,7 +5653,10 @@ i_s_innodb_buf_page_lru_fill(
OK(ret);
- fields[IDX_BUF_LRU_PAGE_TABLE_NAME]->set_notnull();
+ if (index) {
+ fields[IDX_BUF_LRU_PAGE_TABLE_NAME]
+ ->set_notnull();
+ }
}
OK(fields[IDX_BUF_LRU_PAGE_NUM_RECS]->store(