1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Change SEL_ARG::MAX_SEL_ARGS to a user defined variable optimizer_max_sel_args

This allows a user to to change the default value of MAX_SEL_ARGS (16000)
in the rare case where they neeed more generated SEL_ARGS (as part of
the range optimizer)
This commit is contained in:
Monty
2023-09-27 01:29:22 +03:00
parent 4e9322e2ff
commit d4347177c7
9 changed files with 303 additions and 242 deletions

View File

@@ -322,7 +322,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 &);
@@ -740,7 +740,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;
}
};