summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index a2bbe1447e9..a6ae0429a8b 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -2853,6 +2853,13 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use,
Json_writer_array trace_range_summary(thd,
"setup_range_conditions");
tree= cond->get_mm_tree(&param, &cond);
+ if (thd->trace_started() &&
+ param.alloced_sel_args >= SEL_ARG::MAX_SEL_ARGS)
+ {
+ Json_writer_object wrapper(thd);
+ Json_writer_object obj(thd, "sel_arg_alloc_limit_hit");
+ obj.add("alloced_sel_args", param.alloced_sel_args);
+ }
}
if (tree)
{