mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Refactor Sort_param::init_for_filesort
No logic changes. Extract some of init_for_filesort logic into a separate function: * Sort_param::setup_lengths_and_limit can be used to fill in the various xxx_length members of Sort_param, without having to allocate any of the other buffers. Reviewer: Monty
This commit is contained in:
committed by
Sergei Petrunia
parent
50e9f7aee5
commit
b70290869e
@@ -590,10 +590,14 @@ public:
|
||||
*/
|
||||
tmp_buffer.set_charset(&my_charset_bin);
|
||||
}
|
||||
void init_for_filesort(uint sortlen, TABLE *table,
|
||||
ha_rows maxrows, Filesort *filesort);
|
||||
|
||||
void (*unpack)(TABLE *);
|
||||
void init_for_filesort(TABLE *table, Filesort *filesort,
|
||||
uint sortlen, ha_rows limit_rows_arg);
|
||||
void setup_lengths_and_limit(TABLE *table,
|
||||
uint sortlen,
|
||||
uint addon_length,
|
||||
ha_rows limit_rows_arg);
|
||||
void (*unpack)(TABLE *);
|
||||
/// Enables the packing of addons if possible.
|
||||
void try_to_pack_addons(ulong max_length_for_sort_data);
|
||||
|
||||
|
Reference in New Issue
Block a user