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
131c318b
Commit
131c318b
authored
May 30, 2022
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove compiler warning about unused variables
parent
863c3eda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sql/partition_info.cc
sql/partition_info.cc
+2
-0
No files found.
sql/partition_info.cc
View file @
131c318b
...
@@ -900,10 +900,12 @@ void partition_info::vers_check_limit(THD *thd)
...
@@ -900,10 +900,12 @@ void partition_info::vers_check_limit(THD *thd)
bitmap_set_all(), but this is not optimal since there can be quite a number
bitmap_set_all(), but this is not optimal since there can be quite a number
of partitions.
of partitions.
*/
*/
#ifndef DBUG_OFF
const
uint32
sub_factor
=
num_subparts
?
num_subparts
:
1
;
const
uint32
sub_factor
=
num_subparts
?
num_subparts
:
1
;
uint32
part_id
=
vers_info
->
hist_part
->
id
*
sub_factor
;
uint32
part_id
=
vers_info
->
hist_part
->
id
*
sub_factor
;
const
uint32
part_id_end
=
part_id
+
sub_factor
;
const
uint32
part_id_end
=
part_id
+
sub_factor
;
DBUG_ASSERT
(
part_id_end
<=
num_parts
*
sub_factor
);
DBUG_ASSERT
(
part_id_end
<=
num_parts
*
sub_factor
);
#endif
ha_partition
*
hp
=
(
ha_partition
*
)(
table
->
file
);
ha_partition
*
hp
=
(
ha_partition
*
)(
table
->
file
);
ha_rows
hist_rows
=
hp
->
part_records
(
vers_info
->
hist_part
);
ha_rows
hist_rows
=
hp
->
part_records
(
vers_info
->
hist_part
);
...
...
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