summaryrefslogtreecommitdiff
path: root/storage/innobase/include/dict0dict.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-03-07 17:50:13 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-03-07 17:52:27 +0200
commit913e33e423b434712a9d708cd0f0244d2f03cb0b (patch)
tree6f276c6426bd91a8b7f35614a20ddfa2df89b213 /storage/innobase/include/dict0dict.h
parent2faefe5f7f432f8d9b3435dd8f4e2a37163c5527 (diff)
parente3adf96aeb39ad43143ca2a9c7a2f23d06e8e26b (diff)
downloadmariadb-git-913e33e423b434712a9d708cd0f0244d2f03cb0b.tar.gz
Merge 10.1 into 10.2
Rewrite the MDEV-13818 fix to prevent heap-use-after-free. Add a test case for MDEV-18272.
Diffstat (limited to 'storage/innobase/include/dict0dict.h')
-rw-r--r--storage/innobase/include/dict0dict.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/storage/innobase/include/dict0dict.h b/storage/innobase/include/dict0dict.h
index 26d5ed34318..d843374b866 100644
--- a/storage/innobase/include/dict0dict.h
+++ b/storage/innobase/include/dict0dict.h
@@ -2,7 +2,7 @@
Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
-Copyright (c) 2013, 2018, MariaDB Corporation.
+Copyright (c) 2013, 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
@@ -1599,31 +1599,21 @@ dict_tables_have_same_db(
/** Get an index by name.
@param[in] table the table where to look for the index
@param[in] name the index name to look for
-@param[in] committed true=search for committed,
-false=search for uncommitted
@return index, NULL if does not exist */
dict_index_t*
-dict_table_get_index_on_name(
- dict_table_t* table,
- const char* name,
- bool committed=true)
+dict_table_get_index_on_name(dict_table_t* table, const char* name)
MY_ATTRIBUTE((warn_unused_result));
/** Get an index by name.
@param[in] table the table where to look for the index
@param[in] name the index name to look for
-@param[in] committed true=search for committed,
-false=search for uncommitted
@return index, NULL if does not exist */
inline
const dict_index_t*
-dict_table_get_index_on_name(
- const dict_table_t* table,
- const char* name,
- bool committed=true)
+dict_table_get_index_on_name(const dict_table_t* table, const char* name)
{
- return(dict_table_get_index_on_name(
- const_cast<dict_table_t*>(table), name, committed));
+ return dict_table_get_index_on_name(const_cast<dict_table_t*>(table),
+ name);
}
/***************************************************************