mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
TODO: enable MDEV-13049 optimization for 10.3
This commit is contained in:
@ -85,8 +85,9 @@ static my_bool print_cached_tables_callback(TDC_element *element,
|
||||
while ((entry= it++))
|
||||
{
|
||||
THD *in_use= entry->in_use;
|
||||
printf("%-14.14s %-32s%6ld%8ld%6d %s\n",
|
||||
entry->s->db.str, entry->s->table_name.str, element->version,
|
||||
printf("%-14.14s %-32s%6lu%8ld%6d %s\n",
|
||||
entry->s->db.str, entry->s->table_name.str,
|
||||
(ulong) element->version,
|
||||
in_use ? (long) in_use->thread_id : (long) 0,
|
||||
entry->db_stat ? 1 : 0,
|
||||
in_use ? lock_descriptions[(int)entry->reginfo.lock_type] :
|
||||
@ -106,7 +107,8 @@ static void print_cached_tables(void)
|
||||
|
||||
tdc_iterate(0, (my_hash_walk_action) print_cached_tables_callback, NULL, true);
|
||||
|
||||
printf("\nCurrent refresh version: %ld\n", tdc_refresh_version());
|
||||
printf("\nCurrent refresh version: %ld\n",
|
||||
(long) tdc_refresh_version());
|
||||
fflush(stdout);
|
||||
/* purecov: end */
|
||||
return;
|
||||
@ -172,7 +174,7 @@ TEST_join(JOIN *join)
|
||||
in order not to garble the tabular output below.
|
||||
*/
|
||||
String ref_key_parts[MAX_TABLES];
|
||||
int tables_in_range= jt_range->end - jt_range->start;
|
||||
int tables_in_range= (int)(jt_range->end - jt_range->start);
|
||||
for (i= 0; i < tables_in_range; i++)
|
||||
{
|
||||
JOIN_TAB *tab= jt_range->start + i;
|
||||
|
Reference in New Issue
Block a user