mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-19235 MariaDB Server compiled for 128 Indexes crashes at startup
With MAX_INDEXIES=64(default), key_map=Bitmap<64> is just a wrapper around ulonglong and thus "trivial" (can be bzero-ed, or memcpy-ed, and stays valid still) With MAX_INDEXES=128, key_map = Bitmap<128> is not a "trivial" type anymore. The implementation uses MY_BITMAP, and MY_BITMAP contains pointers which make Bitmap invalid, when it is memcpy-ed/bzero-ed. The problem in 10.4 is that there are many new key_map members, inside TABLE or KEY, and those are often memcopied and bzeroed The fix makes Bitmap "trivial", by inlining most of MY_BITMAP functionality. pointers/heap allocations are not used anymore.
This commit is contained in:
@ -32,6 +32,10 @@ echo ok;
|
||||
--echo
|
||||
--echo # cat MYSQL_TMP_DIR/test_explain_meta.out.log
|
||||
--echo # ------------------------------------
|
||||
|
||||
# For MAX_INDEXES=128, max_len for possible_keys column is twice as large vs MAX_INDEXES=64
|
||||
--replace_result 24576 12288
|
||||
|
||||
--cat_file $MYSQL_TMP_DIR/test_explain_meta.out.log
|
||||
--echo # ------------------------------------
|
||||
--echo
|
||||
|
Reference in New Issue
Block a user