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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
597934ee
Commit
597934ee
authored
Dec 10, 2010
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings.
parent
212e4226
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/opt_range.cc
sql/opt_range.cc
+3
-2
No files found.
sql/opt_range.cc
View file @
597934ee
...
@@ -5075,7 +5075,8 @@ ha_rows records_in_index_intersect_extension(PARTIAL_INDEX_INTERSECTION_INFO *cu
...
@@ -5075,7 +5075,8 @@ ha_rows records_in_index_intersect_extension(PARTIAL_INDEX_INTERSECTION_INFO *cu
ha_rows
table_cardinality
=
curr
->
common_info
->
table_cardinality
;
ha_rows
table_cardinality
=
curr
->
common_info
->
table_cardinality
;
ha_rows
records
=
curr
->
records
;
ha_rows
records
=
curr
->
records
;
bitmap_copy
(
used_fields
,
curr
->
intersect_fields
);
bitmap_copy
(
used_fields
,
curr
->
intersect_fields
);
records
=
(
double
)
records
/
table_cardinality
*
ext_index_scan
->
records
;
records
=
(
ha_rows
)
((
double
)
records
/
table_cardinality
*
ext_index_scan
->
records
);
set_if_bigger
(
records
,
1
);
set_if_bigger
(
records
,
1
);
for
(
uint
i
=
0
;
key_part
<
key_part_end
;
i
++
,
key_part
++
)
for
(
uint
i
=
0
;
key_part
<
key_part_end
;
i
++
,
key_part
++
)
{
{
...
@@ -5084,7 +5085,7 @@ ha_rows records_in_index_intersect_extension(PARTIAL_INDEX_INTERSECTION_INFO *cu
...
@@ -5084,7 +5085,7 @@ ha_rows records_in_index_intersect_extension(PARTIAL_INDEX_INTERSECTION_INFO *cu
ulong
*
rec_per_key
=
key_info
->
rec_per_key
+
i
;
ulong
*
rec_per_key
=
key_info
->
rec_per_key
+
i
;
ulong
f1
=
rec_per_key
[
0
]
?
rec_per_key
[
0
]
:
1
;
ulong
f1
=
rec_per_key
[
0
]
?
rec_per_key
[
0
]
:
1
;
ulong
f2
=
i
+
1
<
key_parts
&&
rec_per_key
[
1
]
?
rec_per_key
[
1
]
:
1
;
ulong
f2
=
i
+
1
<
key_parts
&&
rec_per_key
[
1
]
?
rec_per_key
[
1
]
:
1
;
records
=
(
double
)
records
/
f2
*
f1
;
records
=
(
ha_rows
)
((
double
)
records
/
f2
*
f1
)
;
}
}
else
else
{
{
...
...
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