Skip to content

Commit

Permalink
Merge 10.0 into 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed May 24, 2018
2 parents e744c68 + a61724a commit c38cc31
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
28 changes: 19 additions & 9 deletions storage/innobase/handler/i_s.cc
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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(
Expand Down Expand Up @@ -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,
Expand All @@ -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(
Expand Down
28 changes: 19 additions & 9 deletions storage/xtradb/handler/i_s.cc
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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(
Expand Down Expand Up @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit c38cc31

Please sign in to comment.