mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.6 into 10.10
The MDEV-29693 conflict resolution is from Monty, as well as is a bug fix where ANALYZE TABLE wrongly built histograms for single-column PRIMARY KEY. Also includes a fix for safe_malloc error reporting. Other things: - Copied main.log_slow from 10.4 to avoid mtr issue Disabled test: - spider/bugfix.mdev_27239 because we started to get +Error 1429 Unable to connect to foreign data source: localhost -Error 1158 Got an error reading communication packets - main.delayed - Bug#54332 Deadlock with two connections doing LOCK TABLE+INSERT DELAYED This part is disabled for now as it fails randomly with different warnings/errors (no corruption).
This commit is contained in:
@@ -351,7 +351,7 @@ public:
|
||||
#endif
|
||||
|
||||
/* See RANGE_OPT_PARAM::alloced_sel_args */
|
||||
enum { MAX_SEL_ARGS = 16000 };
|
||||
enum { DEFAULT_MAX_SEL_ARGS = 16000 };
|
||||
|
||||
SEL_ARG() = default;
|
||||
SEL_ARG(SEL_ARG &);
|
||||
@@ -889,6 +889,8 @@ public:
|
||||
*/
|
||||
bool remove_false_where_parts;
|
||||
|
||||
bool note_unusable_keys; // Give SQL notes for unusable keys
|
||||
|
||||
/*
|
||||
used_key_no -> table_key_no translation table. Only makes sense if
|
||||
using_real_indexes==TRUE
|
||||
@@ -914,7 +916,7 @@ public:
|
||||
thd->killed ||
|
||||
thd->is_fatal_error ||
|
||||
thd->is_error() ||
|
||||
alloced_sel_args > SEL_ARG::MAX_SEL_ARGS;
|
||||
alloced_sel_args > thd->variables.optimizer_max_sel_args;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1909,7 +1911,8 @@ class SQL_SELECT :public Sql_alloc {
|
||||
int test_quick_select(THD *thd, key_map keys, table_map prev_tables,
|
||||
ha_rows limit, bool force_quick_range,
|
||||
bool ordered_output, bool remove_false_parts_of_where,
|
||||
bool only_single_index_range_scan);
|
||||
bool only_single_index_range_scan,
|
||||
bool suppress_unusable_key_notes = 0);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user