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
6fd7a4b6
Commit
6fd7a4b6
authored
Mar 22, 2019
by
Michael Widenius
Committed by
Monty
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed uninitialized bug in Range_rowid_filter_cost_info
parent
5b15f68e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/rowid_filter.cc
sql/rowid_filter.cc
+3
-1
No files found.
sql/rowid_filter.cc
View file @
6fd7a4b6
...
@@ -118,6 +118,8 @@ void Range_rowid_filter_cost_info::init(Rowid_filter_container_type cont_type,
...
@@ -118,6 +118,8 @@ void Range_rowid_filter_cost_info::init(Rowid_filter_container_type cont_type,
a
=
avg_access_and_eval_gain_per_row
(
container_type
);
a
=
avg_access_and_eval_gain_per_row
(
container_type
);
if
(
a
>
0
)
if
(
a
>
0
)
cross_x
=
b
/
a
;
cross_x
=
b
/
a
;
else
cross_x
=
b
+
1
;
abs_independent
.
clear_all
();
abs_independent
.
clear_all
();
}
}
...
@@ -262,7 +264,7 @@ void TABLE::prune_range_rowid_filters()
...
@@ -262,7 +264,7 @@ void TABLE::prune_range_rowid_filters()
i.e. the range filters f1, f2 of both e1 and e2 always promise
i.e. the range filters f1, f2 of both e1 and e2 always promise
better gains then the range filter of e.
better gains then the range filter of e.
As e1 and e2 are absolutely independent one of the range filters
As e1 and e2 are absolutely independent one of the range filters
f1, f2 will be always a better choice than f no matter what index
f1, f2 will be always a better choice than f
1
no matter what index
is chosen to access the table. Because of this the element e
is chosen to access the table. Because of this the element e
can be safely removed from the array.
can be safely removed from the array.
*/
*/
...
...
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