diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-09-28 17:55:28 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-09-28 17:55:28 +0200 |
commit | 66d9696596edbc20ad36bf3d5bffb5595e8235c3 (patch) | |
tree | bbef37c9a90b63d25bee59386cac04298a13846f /sql/signal_handler.cc | |
parent | 66a58f46e937cdc3d7e0529b52ad8b658d9b2cd4 (diff) | |
parent | 23af6f5942e7235a7c14a36cb8dd0d2796b5ef37 (diff) | |
download | mariadb-git-66d9696596edbc20ad36bf3d5bffb5595e8235c3.tar.gz |
Merge branch '10.0' into 10.1
Diffstat (limited to 'sql/signal_handler.cc')
-rw-r--r-- | sql/signal_handler.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc index 9dd3e532d1e..f72eb676743 100644 --- a/sql/signal_handler.cc +++ b/sql/signal_handler.cc @@ -64,13 +64,13 @@ extern "C" sig_handler handle_fatal_signal(int sig) struct tm tm; #ifdef HAVE_STACKTRACE THD *thd; -#endif /* This flag remembers if the query pointer was found invalid. We will try and print the query at the end of the signal handler, in case we're wrong. */ bool print_invalid_query_pointer= false; +#endif if (segfaulted) { @@ -276,6 +276,7 @@ extern "C" sig_handler handle_fatal_signal(int sig) "\"mlockall\" bugs.\n"); } +#ifdef HAVE_STACKTRACE if (print_invalid_query_pointer) { my_safe_printf_stderr( @@ -285,6 +286,7 @@ extern "C" sig_handler handle_fatal_signal(int sig) my_write_stderr(thd->query(), MY_MIN(65536U, thd->query_length())); my_safe_printf_stderr("\n\n"); } +#endif #ifdef HAVE_WRITE_CORE if (test_flags & TEST_CORE_ON_SIGNAL) |