Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f915681d
Commit
f915681d
authored
Nov 25, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-30036 NULL pointer dereference in partition_info::set_partition_bitmaps_from_table
remove dead code
parent
c7c1461b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
sql/partition_info.cc
sql/partition_info.cc
+0
-21
sql/partition_info.h
sql/partition_info.h
+0
-1
No files found.
sql/partition_info.cc
View file @
f915681d
...
...
@@ -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.
...
...
sql/partition_info.h
View file @
f915681d
...
...
@@ -330,7 +330,6 @@ class partition_info : public Sql_alloc
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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment