Commit ad772478 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-21958 Query having many NOT-IN clauses running forever and causing...

MDEV-21958 Query having many NOT-IN clauses running forever and causing available free memory to use completely

let thd->killed to abort range optimizer
parent 1e951155
......@@ -656,6 +656,7 @@ class RANGE_OPT_PARAM
bool statement_should_be_aborted() const
{
return
thd->killed ||
thd->is_fatal_error ||
thd->is_error() ||
alloced_sel_args > SEL_ARG::MAX_SEL_ARGS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment