summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-05-19 08:53:58 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-05-19 12:29:37 +0300
commit13a350ac29eeb43153c7bca65b73b5dfa9f8ffb5 (patch)
treeb13da72226623745f0607609e2bb3dcaac4a11c6 /sql/mysqld.cc
parentd0eb4ee96b32caec1d6bba6dc376016b2bf2ac0f (diff)
parent54bb04f7efc1d0842b3d8befb670f5d9f05cb211 (diff)
downloadmariadb-git-13a350ac29eeb43153c7bca65b73b5dfa9f8ffb5.tar.gz
Merge 10.0 into 10.1
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 8aaaa434314..abb9706c59b 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -105,6 +105,7 @@
#include "sp_rcontext.h"
#include "sp_cache.h"
#include "sql_reload.h" // reload_acl_and_cache
+#include "pcre.h"
#ifdef HAVE_POLL_H
#include <poll.h>
@@ -3631,6 +3632,7 @@ static void init_libstrings()
#endif
}
+ulonglong my_pcre_frame_size;
static void init_pcre()
{
@@ -3638,6 +3640,8 @@ static void init_pcre()
pcre_free= pcre_stack_free= my_str_free_mysqld;
#ifndef EMBEDDED_LIBRARY
pcre_stack_guard= check_enough_stack_size_slow;
+ /* See http://pcre.org/original/doc/html/pcrestack.html */
+ my_pcre_frame_size= -pcre_exec(NULL, NULL, NULL, -999, -999, 0, NULL, 0) + 16;
#endif
}
@@ -9271,8 +9275,8 @@ mysql_getopt_value(const char *name, uint length,
}
/* We return in all cases above. Let us silence -Wimplicit-fallthrough */
DBUG_ASSERT(0);
- /* fall through */
#ifdef HAVE_REPLICATION
+ /* fall through */
case OPT_REPLICATE_DO_DB:
case OPT_REPLICATE_DO_TABLE:
case OPT_REPLICATE_IGNORE_DB: