MDEV-22271 Excessive stack memory usage due to WSREP_LOG

fix embedded innodb_plugin tests

followup for 7198c6ab2d
This commit is contained in:
Sergei Golubchik 2020-04-22 13:21:43 +02:00
parent f462fbac61
commit dd4124c224
2 changed files with 4 additions and 9 deletions

View file

@ -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*/

View file

@ -141,3 +141,7 @@ void wsrep_unlock_rollback()
void wsrep_set_data_home_dir(const char *)
{ }
void wsrep_log(void (*)(const char *, ...), const char *, ...)
{
}