mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@@ -251,9 +251,6 @@ protected:
|
||||
/* The expected size of the space per record in the auxiliary buffer */
|
||||
size_t avg_aux_buffer_incr;
|
||||
|
||||
/* Expected join buffer space used for one record */
|
||||
size_t space_per_record;
|
||||
|
||||
/* Pointer to the beginning of the join buffer */
|
||||
uchar *buff;
|
||||
/*
|
||||
@@ -275,11 +272,6 @@ protected:
|
||||
the minimal size equal to min_buff_size
|
||||
*/
|
||||
size_t min_records;
|
||||
/*
|
||||
The maximum expected number of records to be put in the join buffer
|
||||
at one refill
|
||||
*/
|
||||
size_t max_records;
|
||||
|
||||
/*
|
||||
Pointer to the current position in the join buffer.
|
||||
@@ -545,6 +537,7 @@ protected:
|
||||
join_tab= tab;
|
||||
prev_cache= next_cache= 0;
|
||||
buff= 0;
|
||||
min_buff_size= max_buff_size= 0; // Caches
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -560,6 +553,7 @@ protected:
|
||||
next_cache= 0;
|
||||
prev_cache= prev;
|
||||
buff= 0;
|
||||
min_buff_size= max_buff_size= 0; // Caches
|
||||
if (prev)
|
||||
prev->next_cache= this;
|
||||
}
|
||||
@@ -611,9 +605,10 @@ public:
|
||||
void set_join_buffer_size(size_t sz) { buff_size= sz; }
|
||||
|
||||
/* Get the minimum possible size of the cache join buffer */
|
||||
virtual size_t get_min_join_buffer_size();
|
||||
size_t get_min_join_buffer_size();
|
||||
/* Get the maximum possible size of the cache join buffer */
|
||||
virtual size_t get_max_join_buffer_size(bool optimize_buff_size);
|
||||
size_t get_max_join_buffer_size(bool optimize_buff_size,
|
||||
size_t min_buffer_size_arg);
|
||||
|
||||
/* Shrink the size if the cache join buffer in a given ratio */
|
||||
bool shrink_join_buffer_in_ratio(ulonglong n, ulonglong d);
|
||||
|
Reference in New Issue
Block a user