summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authorthek@adventure.(none) <>2008-05-09 09:43:02 +0200
committerthek@adventure.(none) <>2008-05-09 09:43:02 +0200
commit19a22f87e9088e2c7dbe27eb1d18f195004a4680 (patch)
tree09591f37c2d93fb66dd1f852e60e38e672485ccf /sql/sql_test.cc
parentee6373ab7cedc4846f3ac06dd4174a1edf8d5281 (diff)
downloadmariadb-git-19a22f87e9088e2c7dbe27eb1d18f195004a4680.tar.gz
Bug#35997 Event scheduler seems to let the server crash, if it is embedded.
The event scheduler was not designed to work in embedded mode. This patch disables and excludes the event scheduler when the server is compiled for embedded build.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index 1a522b852e9..01363714484 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -27,7 +27,9 @@
#include <sys/malloc.h>
#endif
+#ifdef HAVE_EVENT_SCHEDULER
#include "events.h"
+#endif
static const char *lock_descriptions[] =
{
@@ -539,6 +541,8 @@ Estimated memory (with thread stack): %ld\n",
(long) (thread_count * my_thread_stack_size + info.hblkhd + info.arena));
#endif
+#ifdef HAVE_EVENT_SCHEDULER
Events::dump_internal_status();
+#endif
puts("");
}