From 23256485ef32afef5565c51604b30774122ff11a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= <marko.makela@mariadb.com>
Date: Fri, 19 Jan 2018 08:41:07 +0200
Subject: [PATCH 1/4] Disable the unused function dict_stats_rename_index()

---
 storage/innobase/dict/dict0stats.cc   | 4 +++-
 storage/innobase/include/dict0stats.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/storage/innobase/dict/dict0stats.cc b/storage/innobase/dict/dict0stats.cc
index 662ea959b9e..109c5241278 100644
--- a/storage/innobase/dict/dict0stats.cc
+++ b/storage/innobase/dict/dict0stats.cc
@@ -1,7 +1,7 @@
 /*****************************************************************************
 
 Copyright (c) 2009, 2017, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2015, 2017, MariaDB Corporation.
+Copyright (c) 2015, 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
@@ -3742,6 +3742,7 @@ dict_stats_rename_table(
 	return(ret);
 }
 
+#ifdef MYSQL_RENAME_INDEX
 /*********************************************************************//**
 Renames an index in InnoDB persistent stats storage.
 This function creates its own transaction and commits it.
@@ -3798,6 +3799,7 @@ dict_stats_rename_index(
 
 	return(ret);
 }
+#endif /* MYSQL_RENAME_INDEX */
 
 /* tests @{ */
 #ifdef UNIV_ENABLE_UNIT_TEST_DICT_STATS
diff --git a/storage/innobase/include/dict0stats.h b/storage/innobase/include/dict0stats.h
index 357d26b5557..014d7ea0d7f 100644
--- a/storage/innobase/include/dict0stats.h
+++ b/storage/innobase/include/dict0stats.h
@@ -1,7 +1,7 @@
 /*****************************************************************************
 
 Copyright (c) 2009, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2017, MariaDB Corporation.
+Copyright (c) 2017, 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
@@ -178,6 +178,7 @@ dict_stats_rename_table(
 	char*		errstr,
 	size_t		errstr_sz,
 	trx_t*		trx);
+#ifdef MYSQL_RENAME_INDEX
 /*********************************************************************//**
 Renames an index in InnoDB persistent stats storage.
 This function creates its own transaction and commits it.
@@ -191,6 +192,7 @@ dict_stats_rename_index(
 	const char*		old_index_name,	/*!< in: old index name */
 	const char*		new_index_name)	/*!< in: new index name */
 	__attribute__((warn_unused_result));
+#endif /* MYSQL_RENAME_INDEX */
 
 /** Reset the table and index statsistics, corresponding to an empty table.
 @param[in,out]	table			table whose statistics are to be reset
-- 
2.15.1

