1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

cleanup: Don't pass THD to get_merge_many_buff_cost_fast

We can pass the cost directly.

Reviewer: Monty
This commit is contained in:
Vicențiu Ciorbaru
2022-06-30 14:48:00 +03:00
committed by Sergei Petrunia
parent ca2851d17e
commit 06be2c64bc
3 changed files with 26 additions and 20 deletions

View File

@@ -20,12 +20,14 @@
#include "sql_array.h"
class Sort_param;
/*
/**
Calculate cost of merge sort
@param num_rows Total number of rows.
@param num_keys_per_buffer Number of keys per buffer.
@param elem_size Size of each element.
@param key_compare_cost Cost to compare two keys during QSort & merge
Calculates cost of merge sort by simulating call to merge_many_buff().
@@ -38,10 +40,10 @@ class Sort_param;
See also comments get_merge_many_buffs_cost().
*/
double get_merge_many_buffs_cost_fast(THD *thd, ha_rows num_rows,
double get_merge_many_buffs_cost_fast(ha_rows num_rows,
ha_rows num_keys_per_buffer,
uint elem_size);
uint elem_size,
double key_compare_cost);
/**