summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-04 07:41:35 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-04 07:41:35 +0200
commitb6ebadaa66ee68b1880c0e10669543d1ba058c18 (patch)
tree75506bd02a8186a013b5eb16a425de0c1d96bc71 /sql/sql_table.cc
parent7d4b2b984779e695d0c233d11173b2965d25ef27 (diff)
parentfe449affcf99fcf63f620994b544eb96d2504cda (diff)
downloadmariadb-git-b6ebadaa66ee68b1880c0e10669543d1ba058c18.tar.gz
Merge branch '10.6' into 10.7
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 66cd17e8af7..28f371fa2c6 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -59,6 +59,7 @@
#include "debug.h" // debug_crash_here()
#include <algorithm>
#include "wsrep_mysqld.h"
+#include "sql_debug.h"
#ifdef _WIN32
#include <io.h>
@@ -3760,6 +3761,13 @@ without_overlaps_err:
thd->mem_root))
DBUG_RETURN(TRUE);
+#ifndef DBUG_OFF
+ DBUG_EXECUTE_IF("key",
+ Debug_key::print_keys(thd, "prep_create_table: ",
+ *key_info_buffer, *key_count);
+ );
+#endif
+
DBUG_RETURN(FALSE);
}
@@ -9635,7 +9643,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
DEBUG_SYNC(thd, "alter_opened_table");
-#ifdef WITH_WSREP
+#if defined WITH_WSREP && defined ENABLED_DEBUG_SYNC
DBUG_EXECUTE_IF("sync.alter_opened_table",
{
const char act[]=