summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-11-25 17:52:56 +0100
committerSergei Golubchik <serg@mariadb.org>2022-12-02 16:19:13 +0100
commitf915681d2f70f2c10dd3434dc3bb985bc31d3b1a (patch)
tree7bdf4986485ed4d1d7ca051125aa1975d37d70b3
parentc7c1461b9454606eb67020a57de658c6df21730a (diff)
downloadmariadb-git-f915681d2f70f2c10dd3434dc3bb985bc31d3b1a.tar.gz
MDEV-30036 NULL pointer dereference in partition_info::set_partition_bitmaps_from_table
remove dead code
-rw-r--r--sql/partition_info.cc21
-rw-r--r--sql/partition_info.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 17a65ad8cd4..1efef6db52b 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -324,27 +324,6 @@ bool partition_info::set_partition_bitmaps(List<String> *partition_names)
}
-/**
- Set read/lock_partitions bitmap over non pruned partitions
-
- @param table_list Possible TABLE_LIST which can contain
- list of partition names to query
-
- @return Operation status
- @retval FALSE OK
- @retval TRUE Failed to allocate memory for bitmap or list of partitions
- did not match
-
- @note OK to call multiple times without the need for free_bitmaps.
-*/
-bool partition_info::set_partition_bitmaps_from_table(TABLE_LIST *table_list)
-{
- List<String> *partition_names= table_list ?
- NULL : table_list->partition_names;
- return set_partition_bitmaps(partition_names);
-}
-
-
/*
Create a memory area where default partition names are stored and fill it
up with the names.
diff --git a/sql/partition_info.h b/sql/partition_info.h
index ddbb89fa605..7055dc9eb89 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -330,7 +330,6 @@ public:
partition_info *get_clone(THD *thd, bool empty_data_and_index_file= FALSE);
bool set_named_partition_bitmap(const char *part_name, size_t length);
bool set_partition_bitmaps(List<String> *partition_names);
- bool set_partition_bitmaps_from_table(TABLE_LIST *table_list);
/* Answers the question if subpartitioning is used for a certain table */
bool is_sub_partitioned()
{