Commit c3cfcd5b authored by Varun Gupta's avatar Varun Gupta

MDEV-18810: Optimizer trace typo: cumulateed_index_scan_cost

Fixed the typo and updated the test results
parent 52560b8b
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment