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
9bb93b86
Commit
9bb93b86
authored
Jan 29, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings.
parent
34152287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/ha_partition.cc
sql/ha_partition.cc
+5
-5
No files found.
sql/ha_partition.cc
View file @
9bb93b86
...
...
@@ -3565,7 +3565,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
(
PARTITION_ENABLED_TABLE_FLAGS
));
while
(
*
(
++
file
))
{
if
(
!
bitmap_is_set
(
&
m_opened_partitions
,
file
-
m_file
))
if
(
!
bitmap_is_set
(
&
m_opened_partitions
,
(
uint
)(
file
-
m_file
)
))
continue
;
/* MyISAM can have smaller ref_length for partitions with MAX_ROWS set */
set_if_bigger
(
ref_length
,
((
*
file
)
->
ref_length
));
...
...
@@ -3618,7 +3618,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
file
=
&
m_file
[
m_tot_parts
-
1
];
while
(
file
--
!=
m_file
)
{
if
(
bitmap_is_set
(
&
m_opened_partitions
,
file
-
m_file
))
if
(
bitmap_is_set
(
&
m_opened_partitions
,
(
uint
)(
file
-
m_file
)
))
(
*
file
)
->
ha_close
();
}
err_alloc:
...
...
@@ -3801,7 +3801,7 @@ int ha_partition::close(void)
repeat:
do
{
if
(
!
first
||
bitmap_is_set
(
&
m_opened_partitions
,
file
-
m_file
))
if
(
!
first
||
bitmap_is_set
(
&
m_opened_partitions
,
(
uint
)(
file
-
m_file
)
))
(
*
file
)
->
ha_close
();
}
while
(
*
(
++
file
));
...
...
@@ -8255,7 +8255,7 @@ int ha_partition::info(uint flag)
do
{
file
=
*
file_array
;
if
(
bitmap_is_set
(
&
(
m_opened_partitions
),
(
file_array
-
m_file
)))
if
(
bitmap_is_set
(
&
(
m_opened_partitions
),
(
uint
)(
file_array
-
m_file
)))
{
/* Get variables if not already done */
if
(
!
(
flag
&
HA_STATUS_VARIABLE
)
||
...
...
@@ -8365,7 +8365,7 @@ int ha_partition::open_read_partitions(char *name_buff, size_t name_buff_size,
*
sample
=
NULL
;
do
{
int
n_file
=
file
-
m_file
;
int
n_file
=
(
int
)(
file
-
m_file
)
;
int
is_open
=
bitmap_is_set
(
&
m_opened_partitions
,
n_file
);
int
should_be_open
=
bitmap_is_set
(
&
m_part_info
->
read_partitions
,
n_file
);
...
...
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