summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-04-22 13:21:43 +0200
committerSergei Golubchik <serg@mariadb.org>2020-04-27 09:13:02 +0200
commitdd4124c22430dd2f245afbf9a20cfea303de3320 (patch)
tree3b27c5625fa2158f13a08024855419e4b0fbfd8f /sql
parentf462fbac61445558a7b8929cabace8a9c480d961 (diff)
downloadmariadb-git-dd4124c22430dd2f245afbf9a20cfea303de3320.tar.gz
MDEV-22271 Excessive stack memory usage due to WSREP_LOG
fix embedded innodb_plugin tests followup for 7198c6ab2dc
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc9
-rw-r--r--sql/wsrep_dummy.cc4
2 files changed, 4 insertions, 9 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index ff3faaa92bc..594f50b72f2 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1814,15 +1814,6 @@ static void close_server_sock()
#endif
}
-#else /* EMBEDDED LIBRARY */
-# ifndef _WIN32
-/* Unfortunately, ha_innodb.so is by default built WITH_WSREP, and it
-will be used for both the normal and the embedded server, while the
-embedded server library is never built WITH_WSREP. We must define this
-symbol in the embedded library, so that loading a dynamic InnoDB storage
-engine plugin will work in the embedded server library. */
-void wsrep_log(void (*)(const char *, ...), const char *, ...) {}
-# endif
#endif /*EMBEDDED_LIBRARY*/
diff --git a/sql/wsrep_dummy.cc b/sql/wsrep_dummy.cc
index 43cea8bad42..364ef2d3e7a 100644
--- a/sql/wsrep_dummy.cc
+++ b/sql/wsrep_dummy.cc
@@ -141,3 +141,7 @@ void wsrep_unlock_rollback()
void wsrep_set_data_home_dir(const char *)
{ }
+
+void wsrep_log(void (*)(const char *, ...), const char *, ...)
+{
+}