mariadb/storage
Monty b2f6216695 MDEV-37808 "Local temporary space limit reached" on not so rare occasions
This bug happens when using galera, max_tmp_session_space_usage and a
transaction that uses temporary file of a size between 'binlog-cache-size'
(default 32K) and 64K followed by a change user command.

In the case of a transaction of size between 32k and 64k, the server don't
truncate the binary log file on disk to speed up things, which is fine.

The bug was that change_user() reset the tmp_space_used variable and the
next time the temporary_file was truncated, we got a negative value for
tmp_space_used, which caused the error "Local temporary space limit
reached".

Fixed by not resetting tmp_space_used in init(), which is called by
change_user().

Other things
- Truncate binary log cache files when change_user() is called. This
  makes the new users session not depending on log file sizes by previous
  user.
- Some new ASSERT and DBUG_ENTER
- Fixed typo in DBUG output in ma_pagecache.c
2025-11-19 15:14:40 +02:00
..
archive MDEV-36050 DATA/INDEX DIRECTORY handling is inconsistent 2025-04-18 09:41:23 +02:00
blackhole Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
columnstore Add Columnstore MTR to the mariadb-test package 2025-11-07 15:17:37 +02:00
connect cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
csv Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
example cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
federated MDEV-35184 Corruption errors upon creation or usage of Federated table with vector key 2025-07-21 10:24:14 +02:00
federatedx Merge branch '10.11' into 11.4 2025-11-04 13:44:16 +01:00
heap Merge branch '11.7' into 11.8 2025-02-11 20:29:43 +01:00
innobase Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
maria MDEV-37808 "Local temporary space limit reached" on not so rare occasions 2025-11-19 15:14:40 +02:00
mroonga cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
myisam cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
myisammrg cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
oqgraph Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
perfschema Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
rocksdb cleanup: CREATE_TYPELIB_FOR() helper 2025-10-25 00:19:11 +07:00
sequence cleanup: extract transaction-related part of handlerton 2024-11-05 14:00:50 -08:00
sphinx Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
spider Merge branch 'bb-11.4-serg' into bb-11.8-serg 2025-11-04 18:27:52 +01:00
test_sql_discovery MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00