summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-04 11:42:37 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-04 11:42:37 +0200
commit2f70784c2aff3bcf67f89f4d8cd121e8f8c3355f (patch)
treefaaec8693d4aa4ba3a71c11a6143fc8d08d1fa95 /sql/sql_table.cc
parent4345d9310080e6e4cbf1040263a2653f7d3d9227 (diff)
parentb6ebadaa66ee68b1880c0e10669543d1ba058c18 (diff)
downloadmariadb-git-2f70784c2aff3bcf67f89f4d8cd121e8f8c3355f.tar.gz
Merge branch '10.7' into 10.8
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 9127e68e7dc..46eb2e14b1d 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -63,7 +63,7 @@
#include "rpl_mi.h"
#include "rpl_rli.h"
#include "log.h"
-
+#include "sql_debug.h"
#ifdef _WIN32
#include <io.h>
@@ -3800,6 +3800,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);
}
@@ -9962,7 +9969,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[]=