MySQL 8.4.3
Source Code Documentation
|
#include <algorithm>
#include "my_dbug.h"
#include "my_sys.h"
#include "sql/mysqld.h"
#include "sql/sql_base.h"
#include "sql/sql_sort.h"
Go to the source code of this file.
Functions | |
template<typename Merge_param > | |
bool | merge_many_buff (THD *thd, Merge_param *param, Sort_buffer sort_buffer, Merge_chunk_array chunk_array, size_t *p_num_chunks, IO_CACHE *t_file) |
Merges buffers to make < MERGEBUFF2 buffers. More... | |
bool merge_many_buff | ( | THD * | thd, |
Merge_param * | param, | ||
Sort_buffer | sort_buffer, | ||
Merge_chunk_array | chunk_array, | ||
size_t * | p_num_chunks, | ||
IO_CACHE * | t_file | ||
) |
Merges buffers to make < MERGEBUFF2 buffers.
thd | thread context | |
param | Sort parameters. | |
sort_buffer | The main memory buffer. | |
chunk_array | Array of chunk descriptors to merge. | |
[out] | p_num_chunks | The number of chunks left in the output file. |
[out] | t_file | Where to store the result. |