diff options
author | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-02-04 10:59:55 +0600 |
---|---|---|
committer | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-02-04 10:59:55 +0600 |
commit | 4e9e30434e46bb81ed87f2b64652e7431517d1ff (patch) | |
tree | 9bc91995139c6a33bb08ddac3d496724cd5394a7 /sql/mysqld.cc | |
parent | 9abc2aadc55cc55f71bd6e348dc44e875c8cfbf8 (diff) | |
parent | 378091e434d66dcc7081f991a07db2244dbb8cda (diff) | |
download | mariadb-git-4e9e30434e46bb81ed87f2b64652e7431517d1ff.tar.gz |
Merge from mysql-5.1 for bug#58026.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index cf1627ced57..c81d8bd75e2 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2879,6 +2879,19 @@ sizeof(load_default_groups)/sizeof(load_default_groups[0]); #endif +#ifndef EMBEDDED_LIBRARY +static +int +check_enough_stack_size() +{ + uchar stack_top; + + return check_stack_overrun(current_thd, STACK_MIN_SIZE, + &stack_top); +} +#endif + + /** Initialize one of the global date/time format variables. @@ -3340,7 +3353,11 @@ static int init_common_variables() if (item_create_init()) return 1; item_init(); - my_regex_init(&my_charset_latin1); +#ifndef EMBEDDED_LIBRARY + my_regex_init(&my_charset_latin1, check_enough_stack_size); +#else + my_regex_init(&my_charset_latin1, NULL); +#endif /* Process a comma-separated character set list and choose the first available character set. This is mostly for |