Skip to content
Permalink
Browse files
MDEV-18810: Optimizer trace typo: cumulateed_index_scan_cost
Fixed the typo and updated the test results
  • Loading branch information
Varun Gupta committed Mar 13, 2019
1 parent 52560b8 commit c3cfcd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -2931,7 +2931,7 @@ explain select * from t1 where pk = 2 and a=5 and b=1 {
{
"index": "pk",
"index_scan_cost": 1.0023,
"cumulateed_index_scan_cost": 1.0023,
"cumulated_index_scan_cost": 1.0023,
"disk_sweep_cost": 0.9008,
"cumulative_total_cost": 1.9031,
"usable": true,
@@ -141,7 +141,7 @@ explain select * from t1 where pk1 != 0 and key1 = 1 {
{
"index": "key1",
"index_scan_cost": 1.0001,
"cumulateed_index_scan_cost": 1.0001,
"cumulated_index_scan_cost": 1.0001,
"disk_sweep_cost": 1.0014,
"cumulative_total_cost": 2.0015,
"usable": true,
@@ -6842,7 +6842,7 @@ static bool ror_intersect_add(ROR_INTERSECT_INFO *info,
}

info->total_cost= info->index_scan_costs;
trace_costs->add("cumulateed_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)
{

0 comments on commit c3cfcd5

Please sign in to comment.