mariadb/storage/maria/unittest
Monty 0b7b5cc1b3 MDEV-24 Segmented key cache for Aria
Added option 'aria-pagecache-segments', default 1.

For values > 1, this split the aria-pagecache-buffer into the given
number of segments, each independent from each other.  Having multiple
pagecaches improve performance when multiple connections runs queries
concurrently using different tables.

Each pagecache will use aria-pageache-buffer/segments amount of
memory, however at least 128K.

Each opened table has its index and data file use the segments in a
a round-robin fashion.

Internal changes:
- All programs allocating the maria pagecache themselves should now
  call multi_init_pagecache() instead of init_pagecache().
- pagecache statistics is now stored in 'pagecache_stats' instead of
  maria_pagecache. One must call multi_update_pagecache_stats() to
  update the statistics.
- Added into PAGECACHE_FILE a pointer to files pagecache. This was
  done to ensure that index and data file are using the same
  pagecache and simplified the checkpoint code.
  I kept pagecache in TABLE_SHARE to minimize the changes.
- really_execute_checkpoint() was update to handle a dynamic number of
  pagecaches.
- pagecache_collect_changed_blocks_with_lsn() was slight changed to
  allow it to be called for each pagecache.
- undefined not used functions maria_assign_pagecache() and
  maria_change_pagecache()
- ma_pagecaches.c is totally rewritten. It now contains all
  multi_pagecache functions.

Errors found be QA that are fixed:
MDEV-36872 UBSAN errors in ma_checkpoint.c
MDEV-36874 Behavior upon too small aria_pagecache_buffer_size in case of
           multiple segments is not very user-friendly
MDEV-36914 ma_checkpoint.c(285,9): conversion from '__int64' to 'uint'
           treated as an error
MDEV-36912 sys_vars.sysvars_server_embedded and
           sys_vars.sysvars_server_notembedded fail on x86
2025-06-25 17:59:45 +03:00
..
CMakeLists.txt MDEV-33876 CMake, zlib - use names compatible with official FindZLIB.cmake 2024-05-03 21:48:47 +02:00
lockman-t.c Cleanup my_atomic.h includes 2020-03-21 20:11:44 +04:00
lockman1-t.c Cleanup my_atomic.h includes 2020-03-21 20:11:44 +04:00
lockman2-t.c Cleanup my_atomic.h includes 2020-03-21 20:11:44 +04:00
ma_control_file-t.c Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
ma_loghandler_examples.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_maria_log_cleanup.c MDEV-26221: DYNAMIC_ARRAY use size_t for sizes 2021-10-19 16:00:26 +03:00
ma_pagecache_consist.c Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
ma_pagecache_rwconsist.c Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
ma_pagecache_rwconsist2.c Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
ma_pagecache_single.c Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
ma_test_all-t MDEV-24 Segmented key cache for Aria 2025-06-25 17:59:45 +03:00
ma_test_loghandler-t.c Merge branch '10.6' into 10.11 2024-04-26 08:02:49 +02:00
ma_test_loghandler_first_lsn-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_max_lsn-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_multigroup-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_multithread-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_noflush-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_nologs-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_pagecache-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_loghandler_purge-t.c Some changes to prepare for updated maria-backup 2024-02-26 19:45:11 +02:00
ma_test_recovery.expected MDEV-16421 Make system tables crash safe 2018-08-14 12:18:38 +03:00
ma_test_recovery.pl Max transid was not stored directly after Aria recovery 2018-11-16 16:54:33 +02:00
sequence_storage.c Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
sequence_storage.h Update FSF address 2019-05-10 20:52:00 +03:00
test_file.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
test_file.h Update FSF address 2019-05-10 20:52:00 +03:00
trnman-t.c Merge 10.4 into 10.5 2020-03-23 10:50:14 +02:00