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
c3cfcd5b
Commit
c3cfcd5b
authored
Mar 13, 2019
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18810: Optimizer trace typo: cumulateed_index_scan_cost
Fixed the typo and updated the test results
parent
52560b8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mysql-test/main/opt_trace.result
mysql-test/main/opt_trace.result
+1
-1
mysql-test/main/opt_trace_index_merge_innodb.result
mysql-test/main/opt_trace_index_merge_innodb.result
+1
-1
sql/opt_range.cc
sql/opt_range.cc
+1
-1
No files found.
mysql-test/main/opt_trace.result
View file @
c3cfcd5b
...
...
@@ -2931,7 +2931,7 @@ explain select * from t1 where pk = 2 and a=5 and b=1 {
{
"index": "pk",
"index_scan_cost": 1.0023,
"cumulate
e
d_index_scan_cost": 1.0023,
"cumulated_index_scan_cost": 1.0023,
"disk_sweep_cost": 0.9008,
"cumulative_total_cost": 1.9031,
"usable": true,
...
...
mysql-test/main/opt_trace_index_merge_innodb.result
View file @
c3cfcd5b
...
...
@@ -141,7 +141,7 @@ explain select * from t1 where pk1 != 0 and key1 = 1 {
{
"index": "key1",
"index_scan_cost": 1.0001,
"cumulate
e
d_index_scan_cost": 1.0001,
"cumulated_index_scan_cost": 1.0001,
"disk_sweep_cost": 1.0014,
"cumulative_total_cost": 2.0015,
"usable": true,
...
...
sql/opt_range.cc
View file @
c3cfcd5b
...
...
@@ -6842,7 +6842,7 @@ static bool ror_intersect_add(ROR_INTERSECT_INFO *info,
}
info
->
total_cost
=
info
->
index_scan_costs
;
trace_costs
->
add
(
"cumulate
e
d_index_scan_cost"
,
info
->
index_scan_costs
);
trace_costs
->
add
(
"cumulated_index_scan_cost"
,
info
->
index_scan_costs
);
DBUG_PRINT
(
"info"
,
(
"info->total_cost: %g"
,
info
->
total_cost
));
if
(
!
info
->
is_covering
)
{
...
...
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