mariadb/sql
Monty e600f9aebb MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation
This commit updates default memory allocations size used with MEM_ROOT
objects to minimize the number of calls to malloc().

Changes:
- Updated MEM_ROOT block sizes in sql_const.h
- Updated MALLOC_OVERHEAD to also take into account the extra memory
  allocated by my_malloc()
- Updated init_alloc_root() to only take MALLOC_OVERHEAD into account as
  buffer size, not MALLOC_OVERHEAD + sizeof(USED_MEM).
- Reset mem_root->first_block_usage if and only if first block was used.
- Increase MEM_ROOT buffers sized used by my_load_defaults, plugin_init,
  Create_tmp_table, allocate_table_share, TABLE and TABLE_SHARE.
  This decreases number of malloc calls during queries.
- Use a small buffer for THD->main_mem_root in THD::THD. This avoids
  multiple malloc() call for new connections.

I tried the above changes on a complex select query with 12 tables.
The following shows the number of extra allocations that where used
to increase the size of the MEM_ROOT buffers.

Original code:
- Connection to MariaDB:   9 allocations
- First query run:       146 allocations
- Second query run:       24 allocations

Max memory allocated for thd when using with heap table:  61,262,408
Max memory allocated for thd when using Aria tmp table:      419,464

After changes:
Connection to MariaDB:     0 allocations
- First run:              25 allocations
- Second run:              7 allocations

Max memory allocated for thd when using with heap table:  61,347,424
Max memory allocated for thd when using Aria table:          529,168

The new code uses slightly more memory, but avoids memory fragmentation
and is slightly faster thanks to much fewer calls to malloc().

Reviewed-by: Sergei Golubchik <serg@mariadb.org>
2025-01-05 16:40:11 +02:00
..
share Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
add_errmsg
authors.h
backup.cc Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
backup.h
bounded_queue.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
client_settings.h
CMakeLists.txt MDEV-33091 pcre2 headers aren't found on Solaris 2024-09-05 12:14:06 +10:00
compat56.cc
compat56.h
contributors.h Update sponsors 2024-08-12 09:32:30 +01:00
create_options.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
create_options.h MDEV-35236 Assertion `(mem_root->flags & 4) == 0' failed in safe_lexcstrdup_root 2024-10-23 14:58:57 +02:00
create_tmp_table.h
cset_narrowing.cc MDEV-32113: utf8mb3_key_col=utf8mb4_value cannot be used for ref 2023-10-19 17:24:30 +03:00
cset_narrowing.h MDEV-32113: utf8mb3_key_col=utf8mb4_value cannot be used for ref 2023-10-19 17:24:30 +03:00
custom_conf.h
datadict.cc Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
datadict.h
ddl_log.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
ddl_log.h
debug.cc Merge 10.5 into 10.6 2024-01-17 13:35:05 +02:00
debug.h
debug_sync.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
debug_sync.h
derived_handler.cc MDEV-29284 ANALYZE doesn't work with pushed derived tables 2023-07-07 15:15:24 +07:00
derived_handler.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
derror.cc
derror.h
des_key_file.cc openssl: add a more specific DES support detection 2024-04-30 23:09:02 +10:00
des_key_file.h openssl: add a more specific DES support detection 2024-04-30 23:09:02 +10:00
discover.cc MDEV-24841 Build error with MSAN use-of-uninitialized-value in comp_err 2022-03-14 09:28:55 +02:00
discover.h Merge branch '10.4' into 10.5 2023-01-27 13:54:14 +01:00
encryption.cc MDEV-34348: Fix casting related to plugins 2024-11-23 08:14:23 -07:00
event_data_objects.cc Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
event_data_objects.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
event_db_repository.cc MDEV-28915: mysql_upgrade fails due to old_mode="", with "Cannot load from 2023-06-26 15:10:30 +05:30
event_db_repository.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
event_parse_data.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
event_parse_data.h
event_queue.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
event_queue.h
event_scheduler.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
event_scheduler.h
events.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
events.h
field.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
field.h Merge branch '10.5' into 10.6 2024-10-09 08:38:48 +02:00
field_comp.cc
field_comp.h
field_conv.cc Merge 10.5 into 10.6 2023-08-15 11:21:34 +03:00
filesort.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
filesort.h Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
filesort_utils.cc
filesort_utils.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
gcalc_slicescan.cc Minimize unsafe C functions with safe_strcpy() 2024-05-17 13:33:16 +01:00
gcalc_slicescan.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
gcalc_tools.cc enable -Wenum-compare -Wenum-conversion 2022-05-15 20:37:51 +02:00
gcalc_tools.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
gen_lex_hash.cc
gen_lex_token.cc
gen_win_tzname_data.ps1
gen_yy_files.cmake
grant.cc
grant.h
group_by_handler.cc
group_by_handler.h MDEV-26345 Spider GBH should execute original queries on the data node 2024-10-15 15:36:12 +11:00
gstream.cc
gstream.h
ha_handler_stats.h MDEV-34251 Conditional jump or move depends on uninitialised value in ha_handler_stats::has_stats 2024-10-03 13:45:26 +03:00
ha_partition.cc Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
ha_partition.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
ha_sequence.cc MDEV-32350 Can't selectively restore sequences using innodb tables from backup 2024-10-16 17:24:46 +03:00
ha_sequence.h Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
handle_connections_win.cc
handle_connections_win.h
handler.cc MDEV-24035 Failing assertion: UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure 2024-12-12 18:02:00 +02:00
handler.h Merge branch '10.5' into '10.6' 2024-12-03 13:08:12 +01:00
hash_filo.cc
hash_filo.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
hostname.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
hostname.h
init.cc
init.h
innodb_priv.h
item.cc Merge branch '10.5' into '10.6' 2024-12-03 13:08:12 +01:00
item.h Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
item_buff.cc Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
item_cmpfunc.cc Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
item_cmpfunc.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_create.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_create.h MDEV-31174 fixup: clang++-20 -Wnontrivial-memcall 2024-12-02 11:04:38 +02:00
item_func.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_func.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_geofunc.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_geofunc.h MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_jsonfunc.cc MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_jsonfunc.h MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_row.cc Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
item_row.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
item_strfunc.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
item_strfunc.h MDEV-35416 CONV(1<<63, 10, -2) fails with --view-protocol 2024-11-14 17:05:31 +04:00
item_subselect.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_subselect.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_sum.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_sum.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_timefunc.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
item_timefunc.h MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_vers.cc MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_vers.h MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_windowfunc.cc Merge branch '10.5 into 10.6 2022-02-10 21:07:03 +01:00
item_windowfunc.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
item_xmlfunc.cc MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
item_xmlfunc.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
json_table.cc MDEV-27412: JSON_TABLE doesn't properly unquote strings 2024-10-01 13:45:46 +05:30
json_table.h Remove unused Table_function_json_table::m_text_literal_cs 2024-09-27 13:52:17 +03:00
key.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
key.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
keycaches.cc MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
keycaches.h
lex.h MDEV-31616 Problems with a stored function EMPTY() on upgrade to 10.6. 2024-01-24 09:59:55 +04:00
lex_ident.h Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
lex_string.h MDEV-30662 SQL/PL package body does not appear in I_S.ROUTINES.ROUTINE_DEFINITION 2023-07-14 13:26:26 +04:00
lex_symbol.h
lock.cc Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
lock.h
log.cc Merge branch '10.5' into '10.6' 2024-12-13 01:45:35 +01:00
log.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
log_event.cc MDEV-18590: galera.versioning_trx_id: Test failure: mysqltest: Result content mismatch 2024-04-27 18:40:58 +02:00
log_event.h Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
log_event_client.cc Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
log_event_data_type.h MDEV-27666 User variable not parsed as geometry variable in geometry function 2024-01-16 18:53:23 +04:00
log_event_old.cc Merge branch '10.5' into 10.6 2024-06-26 09:16:54 +08:00
log_event_old.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
log_event_server.cc Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
log_slow.h MDEV-32203 Raise notes when an index cannot be used on data type mismatch 2023-10-03 08:25:31 +03:00
main.cc
mariadb.h
mdl.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
mdl.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
mem_root_array.h
message.h
message.mc
message.rc
mf_iocache.cc
mf_iocache_encr.cc MDEV-34921 MemorySanitizer reports errors for non-debug builds 2024-09-13 14:34:08 +03:00
MSG00001.bin
multi_range_read.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
multi_range_read.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
my_apc.cc MDEV-32728: Wrong mutex usage 'LOCK_thd_data' and 'wait_mutex' 2023-11-08 14:50:43 +01:00
my_apc.h MDEV-32728: Wrong mutex usage 'LOCK_thd_data' and 'wait_mutex' 2023-11-08 14:50:43 +01:00
my_decimal.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
my_decimal.h
my_json_writer.cc Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
my_json_writer.h Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
myskel.m4.in
mysql_install_db.cc MDEV-34428 bootstrap can't delete tempfile, it is already gone 2024-06-19 22:16:02 +02:00
mysql_upgrade_service.cc Merge branch 10.4 into 10.5 2021-12-26 12:51:04 +01:00
mysqld.cc Merge 10.5 into 10.6 2024-12-11 14:46:43 +02:00
mysqld.h Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
mysqld_suffix.h
net_serv.cc MDEV-34799: "Could not write packet" err message args off by 1 2024-08-22 13:02:23 -06:00
opt_index_cond_pushdown.cc
opt_range.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
opt_range.h MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query 2024-10-08 11:58:46 +02:00
opt_range_mrr.cc
opt_split.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
opt_subselect.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
opt_subselect.h Merge 10.4 into 10.5 2022-06-09 12:22:55 +03:00
opt_sum.cc MDEV-35135 Assertion `!is_cond()' failed in Item_bool_func::val_int / do_select 2024-10-14 09:36:17 +02:00
opt_table_elimination.cc Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
opt_trace.cc Merge 10.5 into 10.6 2024-01-17 13:35:05 +02:00
opt_trace.h MDEV-27306: SET STATEMENT optimizer_trace=1 Doesn't save the trace 2021-12-19 17:19:02 +03:00
opt_trace_context.h
parse_file.cc Merge branch '10.5' into 10.6 2022-10-02 22:14:21 +02:00
parse_file.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
partition_element.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
partition_info.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
partition_info.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
password.c
plistsort.c
privilege.h Merge 10.5 into 10.6 2022-10-25 14:25:42 +03:00
procedure.cc
procedure.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
protocol.cc Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
protocol.h Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
proxy_protocol.cc
proxy_protocol.h
records.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
records.h
repl_failsafe.cc Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
repl_failsafe.h
replication.h
rowid_filter.cc MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
rowid_filter.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
rpl_constants.h
rpl_filter.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
rpl_filter.h MDEV-33921: Replication breaks when filtering two-phase XA transactions 2024-07-10 14:37:39 -06:00
rpl_gtid.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
rpl_gtid.h Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
rpl_injector.cc Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
rpl_injector.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
rpl_mi.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
rpl_mi.h MDEV-32551: "Read semi-sync reply magic number error" warnings on master 2024-01-23 13:03:11 +02:00
rpl_parallel.cc Restore the THD state correctly in parallel replication 2024-12-05 09:22:00 +01:00
rpl_parallel.h MDEV-35465 Async replication stops working on Galera async replica node when parallel replication is enabled 2024-12-03 15:05:32 +01:00
rpl_record.cc MDEV-29613 Improve WITH_DBUG_TRACE=OFF 2022-09-23 13:40:42 +03:00
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h rpl_reporting: sprintf -> snprintf 2023-03-24 12:04:16 +11:00
rpl_rli.cc Merge 10.5 into 10.6 2024-08-27 08:52:10 +03:00
rpl_rli.h Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc
rpl_utility.h
rpl_utility_server.cc MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
scheduler.cc
scheduler.h
select_handler.cc Added detection of memory overwrite with multi_malloc 2023-02-27 19:25:44 +02:00
select_handler.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
semisync.cc
semisync.h
semisync_master.cc Extract some of #3360 fixes to 10.6.x 2024-11-18 13:29:04 +11:00
semisync_master.h MDEV-34122: Assertion `entry' failed in Active_tranx::assert_thd_is_waiter 2024-10-21 15:35:54 -06:00
semisync_master_ack_receiver.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
semisync_master_ack_receiver.h MDEV-33582 Add more warnings to be able to better diagnose network issues 2024-03-05 20:19:49 +02:00
semisync_slave.cc MDEV-33546: Rpl_semi_sync_slave_status is ON When Replication Is Not Configured 2024-02-29 07:38:55 -07:00
semisync_slave.h MDEV-32551: "Read semi-sync reply magic number error" warnings on master 2024-01-23 13:03:11 +02:00
service_wsrep.cc Merge branch '10.5' into '10.6' 2024-12-03 13:08:12 +01:00
session_tracker.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
session_tracker.h MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
set_var.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
set_var.h MDEV-34770 GCC warning fix 2024-12-04 18:22:31 +03:00
signal_handler.cc Merge branch '10.5' into '10.6' 2024-12-13 01:45:35 +01:00
slave.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
slave.h Merge branch '10.3' into 10.4 2023-05-02 10:09:27 +02:00
socketpair.c Added socketpair.c as a replacement for 'pipe()' call for Windows. 2024-01-23 13:03:11 +02:00
socketpair.h Added socketpair.c as a replacement for 'pipe()' call for Windows. 2024-01-23 13:03:11 +02:00
sp.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sp.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sp_cache.cc MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
sp_cache.h
sp_head.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sp_head.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sp_pcontext.cc
sp_pcontext.h Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
sp_rcontext.cc
sp_rcontext.h
spatial.cc Merge 10.5 into 10.6 2022-12-13 16:58:58 +02:00
spatial.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sql_acl.cc Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
sql_acl.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_acl_getsort.inl Merge 10.5 -> 10.6 2024-12-05 09:20:36 +01:00
sql_admin.cc Merge branch '10.5' into 10.6 2024-07-18 16:25:33 +02:00
sql_admin.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sql_alloc.h
sql_alter.cc Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
sql_alter.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sql_analyse.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_analyse.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_analyze_stmt.cc
sql_analyze_stmt.h MDEV-31558 Add InnoDB engine information to the slow query log 2023-07-07 12:53:18 +03:00
sql_array.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_audit.cc MDEV-34348: Fix casting related to plugins 2024-11-23 08:14:23 -07:00
sql_audit.h
sql_base.cc Merge 10.5 into 10.6 2025-01-03 09:10:25 +02:00
sql_base.h Merge 10.5 into 10.6 2025-01-03 09:10:25 +02:00
sql_basic_types.h
sql_binlog.cc Merge 10.5 into 10.6 2024-01-17 13:35:05 +02:00
sql_binlog.h
sql_bitmap.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
sql_bootstrap.cc Check and remove high stack usage 2024-04-23 14:12:31 +03:00
sql_bootstrap.h MDEV-28701 Update Server HELP 2022-08-02 16:35:15 +10:00
sql_builtin.cc.in In case WITH_WSREP is enabled, build wsrep as plugin 2021-11-09 17:04:49 +02:00
sql_cache.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_cache.h MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
sql_callback.h
sql_class.cc MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
sql_class.h MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
sql_client.cc
sql_cmd.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_connect.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_connect.h MDEV-33990: SHOW STATUS counts ER_CON_COUNT_ERROR as Connection_errors_internal 2024-09-23 16:16:51 +02:00
sql_const.h MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
sql_crypt.cc
sql_crypt.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sql_cte.cc Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
sql_cte.h Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
sql_cursor.cc Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sql_cursor.h compilation fixes for sys-devel/gcc-11.2.0:11 2021-10-28 12:01:25 +02:00
sql_db.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_db.h
sql_debug.h Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
sql_delete.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_delete.h
sql_derived.cc Merge branch '10.5' into 10.6 2024-08-03 09:04:24 +02:00
sql_derived.h
sql_digest.cc
sql_digest.h
sql_digest_stream.h
sql_do.cc MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
sql_do.h
sql_error.cc Merge branch '10.5' into 10.6 2024-08-20 09:11:34 +02:00
sql_error.h Merge branch '10.5' into 10.6 2024-08-20 09:11:34 +02:00
sql_explain.cc Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
sql_explain.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
sql_expression_cache.cc Merge 10.4 into 10.5 2024-02-12 11:38:13 +02:00
sql_expression_cache.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_get_diagnostics.cc
sql_get_diagnostics.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_handler.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_handler.h
sql_help.cc MDEV-35135 Assertion `!is_cond()' failed in Item_bool_func::val_int / do_select 2024-10-14 09:36:17 +02:00
sql_help.h
sql_hset.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_i_s.h Merge 10.5 into 10.6 2022-05-06 11:11:04 +03:00
sql_insert.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_insert.h
sql_join_cache.cc MDEV-35135 Assertion `!is_cond()' failed in Item_bool_func::val_int / do_select 2024-10-14 09:36:17 +02:00
sql_join_cache.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
sql_lex.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
sql_lex.h Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
sql_lifo_buffer.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
sql_limit.h Merge 10.5 into 10.6 2023-05-23 12:25:39 +03:00
sql_list.cc
sql_list.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_load.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
sql_load.h
sql_locale.cc Fix Indonesian month name. 2024-06-05 14:06:16 +10:00
sql_locale.h
sql_manager.cc Fix windows build failure 2024-04-15 18:54:30 +02:00
sql_manager.h
sql_mode.cc
sql_mode.h
sql_parse.cc Merge branch '10.5' into '10.6' 2024-12-18 05:09:23 +01:00
sql_parse.h
sql_partition.cc MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
sql_partition.h Merge branch '10.5' into 10.6 2023-08-04 07:52:54 +02:00
sql_partition_admin.cc Merge 10.5 into 10.6 2022-09-05 14:05:30 +03:00
sql_partition_admin.h Fix compiler errors 2024-07-03 12:45:30 +02:00
sql_plist.h
sql_plugin.cc MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
sql_plugin.h MDEV-34348: Fix casting related to plugins 2024-11-23 08:14:23 -07:00
sql_plugin_compat.h
sql_plugin_services.inl Merge 10.5 into 10.6 2024-02-08 10:38:53 +02:00
sql_prepare.cc Merge branch '10.5' into '10.6' 2024-12-18 05:09:23 +01:00
sql_prepare.h MDEV-27595 Backport SQL service, introduced by MDEV-19275. 2023-11-05 23:35:31 +04:00
sql_priv.h MDEV-34993: fix merge into 10.6: OPTIMIZER_ADJ_FIX_CARD_MULT should be ON by default 2024-10-16 16:46:38 +03:00
sql_profile.cc Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
sql_profile.h Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
sql_reload.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
sql_reload.h
sql_rename.cc Merge 10.5 into 10.6 2022-09-05 14:05:30 +03:00
sql_rename.h
sql_repl.cc Merge 10.5 into 10.6 2024-05-30 14:27:07 +03:00
sql_repl.h MDEV-32551: "Read semi-sync reply magic number error" warnings on master 2024-01-23 13:03:11 +02:00
sql_schema.cc MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_schema.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
sql_select.cc MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
sql_select.h Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_sequence.cc MDEV-32350 Can't selectively restore sequences using innodb tables from backup 2024-10-16 17:24:46 +03:00
sql_sequence.h MDEV-29771 Server crashes in check_sequence_fields upon CREATE TABLE .. SEQUENCE=1 AS SELECT .. 2023-09-27 08:54:26 +02:00
sql_servers.cc MDEV-33783 CREATE SERVER segfaults on wrong mysql.servers 2024-12-03 13:49:43 +03:00
sql_servers.h
sql_show.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_show.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_signal.cc
sql_signal.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_sort.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_state.c
sql_statistics.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_statistics.h Trivial fix: Make test_if_cheaper_ordering() use actual_rec_per_key() 2024-08-25 16:05:00 +03:00
sql_string.cc Merge 10.5 into 10.6 2024-03-27 15:00:56 +02:00
sql_string.h Merge branch '10.5' into 10.6 2024-07-16 15:54:22 +08:00
sql_table.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_table.h Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
sql_tablespace.cc
sql_tablespace.h
sql_test.cc Merge 10.5 into 10.6 2024-06-13 19:58:11 +03:00
sql_test.h
sql_time.cc MDEV-30931 UBSAN: negation of -X cannot be represented in type 'long long int'; cast to an unsigned type to negate this value to itself in get_interval_value on SELECT 2024-05-27 13:19:13 +04:00
sql_time.h
sql_trigger.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_trigger.h Merge branch '10.5' into 10.6 2022-10-02 22:14:21 +02:00
sql_truncate.cc
sql_truncate.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_tvc.cc MDEV-33971 NAME_CONST in WHERE clause replaced by inner item 2024-07-10 17:23:43 -04:00
sql_tvc.h Merge branch '10.4' into 10.5 2023-09-25 13:06:57 +10:00
sql_type.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_type.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_type_fixedbin.h Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sql_type_fixedbin_storage.h Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
sql_type_geom.cc MDEV-32203 Raise notes when an index cannot be used on data type mismatch 2023-10-03 08:25:31 +03:00
sql_type_geom.h Merge 10.5 into 10.6 2024-01-17 13:35:05 +02:00
sql_type_int.h Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
sql_type_json.cc cleanup: remove Type_collection::handler_by_name() 2023-07-04 16:37:29 +02:00
sql_type_json.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sql_type_real.h
sql_type_string.cc
sql_type_string.h
sql_udf.cc MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
sql_udf.h MDEV-34348: Miscellaneous fixes 2024-11-23 08:14:23 -07:00
sql_union.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_union.h
sql_update.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_update.h
sql_view.cc Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
sql_view.h Merge 10.5 into 10.6 2022-10-25 14:25:42 +03:00
sql_window.cc Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
sql_window.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sql_yacc.yy Merge branch '10.5' into '10.6' 2024-12-13 01:45:35 +01:00
strfunc.cc Merge branch '10.5' into 10.6 2022-08-10 13:06:08 +02:00
strfunc.h
structs.h Trivial fix: Make test_if_cheaper_ordering() use actual_rec_per_key() 2024-08-25 16:05:00 +03:00
sys_vars.cc Update my_default_record_cache_size if global.read_buff_size is changed 2025-01-05 16:40:11 +02:00
sys_vars.inl Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
sys_vars_shared.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
table.cc MDEV-35750 Change MEM_ROOT allocation sizes to reduse calls to malloc() and avoid memory fragmentation 2025-01-05 16:40:11 +02:00
table.h Merge branch '10.5' into 10.6 2024-10-09 08:38:48 +02:00
table_cache.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
table_cache.h Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
temporary_tables.cc Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
thr_malloc.cc
thr_malloc.h
thread_cache.h
thread_pool_info.cc Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
threadpool.h Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
threadpool_common.cc MDEV-34533 post-fix 2024-11-05 21:32:48 +01:00
threadpool_generic.cc Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
threadpool_generic.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
threadpool_win.cc MDEV-23224 Windows threadpool - use better threadpool_max_threads default. 2024-03-19 11:57:38 +01:00
threadpool_winsockets.cc MDEV-28995 Sporadic Assertion on shutdown in threadpool_winsockets.cc 2022-07-01 13:04:44 +02:00
threadpool_winsockets.h
transaction.cc Merge 10.5 into 10.6 2024-06-07 10:03:51 +03:00
transaction.h
tzfile.h
tztime.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
tztime.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
udf_example.c
udf_example.def
uniques.cc MDEV-34348: Fix casts relating to tree_walk_action 2024-11-23 08:14:23 -07:00
uniques.h MDEV-34348: Fix casts relating to tree_walk_action 2024-11-23 08:14:23 -07:00
unireg.cc Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00
unireg.h Merge 10.5 into 10.6 2023-01-03 18:13:11 +02:00
upgrade_conf_file.cc MDEV-26966: Remove innodb_force_load_corrupted 2021-11-04 09:55:35 +02:00
vers_string.h Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
win_tzname_data.h Update Windows TZ data from unicode source (2024b) 2024-11-15 12:18:06 +11:00
winmain.cc MDEV-33488 Windows 11 misdetects mariadbd as LowQoS process, throttles CPU. 2024-02-19 15:35:06 +01:00
winservice.c
winservice.h
wsrep_applier.cc Merge branch 10.5 into 10.6 2024-11-08 18:17:15 +05:30
wsrep_applier.h Use only MySQL code for TOI error vote 2024-09-01 02:58:27 +02:00
wsrep_binlog.cc Changed some malloc() calls to my_malloc() 2023-10-03 08:25:30 +03:00
wsrep_binlog.h
wsrep_check_opts.cc Reduce compilation dependencies on wsrep_mysqld.h 2022-08-31 11:05:23 +03:00
wsrep_client_service.cc Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
wsrep_client_service.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
wsrep_client_state.h
wsrep_condition_variable.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
wsrep_dummy.cc Merge 10.5 into 10.6 2024-01-02 17:37:58 +02:00
wsrep_high_priority_service.cc MDEV-35157 : wrong binlog timestamps on secondary nodes of a galera cluster 2024-11-06 04:59:10 +01:00
wsrep_high_priority_service.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
wsrep_mutex.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
wsrep_mysqld.cc Merge branch '10.5' into '10.6' 2024-12-18 05:09:23 +01:00
wsrep_mysqld.h Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
wsrep_mysqld_c.h
wsrep_notify.cc MDEV-34071: Failure during the galera_3nodes_sr.GCF-336 test 2024-05-06 03:16:59 +02:00
wsrep_on.h MDEV-31660 : Assertion `client_state.transaction().active() in wsrep_append_key 2023-09-29 12:54:04 +02:00
wsrep_plugin.cc MDEV-33157 WSREP: Fix function pointer mismatch 2024-01-03 08:52:50 +02:00
wsrep_priv.h MDEV-31413 : Node has been dropped from the cluster on Startup / Shutdown with async replica 2023-08-08 03:25:56 +02:00
wsrep_schema.cc MDEV-35281 SR transaction crashes with innodb_snapshot_isolation 2024-11-29 08:06:32 +01:00
wsrep_schema.h MDEV-31173 : Server crashes when setting wsrep_cluster_address after adding invalid value to wsrep_allowlist table 2024-08-29 13:41:23 +02:00
wsrep_server_service.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
wsrep_server_service.h MDEV-32363 Shut down Galera networking and logging on fatal signal 2024-09-01 02:48:19 +02:00
wsrep_server_state.cc MDEV-34976 Server crash report broken if Galera is not loaded 2024-09-26 00:04:56 +02:00
wsrep_server_state.h MDEV-32363 Shut down Galera networking and logging on fatal signal 2024-09-01 02:48:19 +02:00
wsrep_sst.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
wsrep_sst.h Merge 10.3 into 10.4 2022-06-27 10:14:37 +03:00
wsrep_storage_service.cc
wsrep_storage_service.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
wsrep_thd.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
wsrep_thd.h Merge 10.5 into 10.6 2024-01-03 14:24:47 +02:00
wsrep_trans_observer.h Merge 10.4 into 10.5 2023-12-21 11:30:32 +02:00
wsrep_types.h
wsrep_utils.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
wsrep_utils.h MDEV-29861 : Galera "notify" test cases hang 2023-09-11 23:06:15 +02:00
wsrep_var.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
wsrep_var.h Changed some malloc() calls to my_malloc() 2023-10-03 08:25:30 +03:00
wsrep_xid.cc
wsrep_xid.h
xa.cc Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
xa.h Revert "MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2" 2024-10-16 13:23:47 +02:00