maria:bb-10.6-MDEV-33314

Last commit made on 2024-02-01
Get this branch:
git clone -b bb-10.6-MDEV-33314 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.6-MDEV-33314
Repository:
lp:maria

Recent commits

2949128... by Sergey Petrunia

MDEV-33314: Crash in calculate_cond_selectivity_for_table() with many columns

Variant#3: moved the logic out of create_key_parts_for_pseudo_indexes

Range Analyzer (get_mm_tree functions) can only process up to MAX_KEY=64
indexes. The problem was that calculate_cond_selectivity_for_table used
it to estimate selectivities for columns, and since a table can
have > MAX_KEY columns, would invoke Range Analyzer with more than MAX_KEY
"pseudo-indexes".

Fixed by making calculate_cond_selectivity_for_table() to run Range
Analyzer with at most MAX_KEY pseudo-indexes. If there are more
columns to process, Range Analyzer will be invoked multiple times.

Also made this change:
- param.real_keynr[0]= 0;
+ MEM_UNDEFINED(&param.real_keynr, sizeof(param.real_keynr));

Range Analyzer should have no use on real_keynr when it is run with
pseudo-indexes.

12d05c8... by Daniel Black

MDEV-28640: Debian typo in init script

Noted by Eric X.

4dbf55b... by Monty <email address hidden>

Disable perfschema.misc_session_status for 32 bit

32bit uses less memory so the test for max_memory_usage does not work

ed76a2e... by Monty <email address hidden>

Updated some 32 bit result files in sys_vars

e20693c... by Monty <email address hidden>

Fixed some wrong printf() usage after changing m_table_id to ulonglong

This caused some crashes on 32 bit platforms.

daca0c0... by Rucha Deodhar <email address hidden>

fix failing test on buildbot for MDEV-27087

220c0fb... by Marko Mäkelä

MDEV-33317 [Warning] InnoDB: Could not free any blocks in the buffer pool!

Let us suppress this timing-sensitive warning globally.
We added it in commit d34479dc664d4cbd4e9dad6b0f92d7c8e55595d1 (MDEV-33053)
so that in case InnoDB hangs due to running out of buffer pool, there
would be a warning about it. On a heavily loaded system that is running
with a small buffer pool, these warnings may be occasionally issued
while page writes are in progress.

c9c4f15... by VladislavVaintroub

Remove bogus "perl not found" on Windows.

Testing exit code from popen(), comparing it with 1, and deciding that
perl.exe is not there, is a) wrong conclusion, and b) uninteresting,
because MTR always runs with perl, and with MTR_PERL set.

Background:
Recent change in 7af50e4df456761c433838f0e65e88b9117f298c introduced
exit code 1 from perl snippet, that broke Windows CI. Do not want
to debug this ever again.

9d88c5b... by Alexey Botchkov

MDEV-31616 Problems with a stored function EMPTY() on upgrade to 10.6.

The IDENT_sys doesn't include keywords, so the function with the
keyword name can be created, but cannot be called.
Moving keywords to new rules keyword_func_sp_var_and_label and
keyword_func_sp_var_not_label so the functions with these
names are allowed.

011d666... by Rucha Deodhar <email address hidden>

reorder the log columns for MDEV-27087