diff options
author | Daniel Black <daniel.black@au.ibm.com> | 2017-04-18 17:20:34 +1000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-05-15 22:23:10 +0200 |
commit | 602b5e4c498ad2e2d045adfa4fd1478ac437582a (patch) | |
tree | 3e91ba4fab05d00c207adcebe1df68de661d3c63 /sql/sql_parse.cc | |
parent | b30311e52a614a199e54767bb77d0419ad2d49c1 (diff) | |
download | mariadb-git-602b5e4c498ad2e2d045adfa4fd1478ac437582a.tar.gz |
WIP: global readonly variable pcre_frame_size
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index e059be4860b..edeb34418b2 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -6208,6 +6208,14 @@ bool check_stack_overrun(THD *thd, long margin, return 0; } +long check_stack_available(long margin, + uchar *buf __attribute__((unused))) +{ + long stack_top; + DBUG_ASSERT(current_thd); + return my_thread_stack_size - margin \ + - used_stack(current_thd->thread_stack,(char*) &stack_top); +} #define MY_YACC_INIT 1000 // Start with big alloc #define MY_YACC_MAX 32000 // Because of 'short' |