summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2022-10-10 14:10:48 +0400
committerAlexander Barkov <bar@mariadb.com>2022-10-10 14:10:48 +0400
commit34163154077045f9b870cacbd0e9b96afe5c6c2d (patch)
tree1eb66ec21d5fc29a2697f1c66fdb071018619ad5 /storage/myisam
parentf6f9b7fc8936a0f8be5ee945b6e54b7371ed6d95 (diff)
downloadmariadb-git-34163154077045f9b870cacbd0e9b96afe5c6c2d.tar.gz
A followup for MDEV-29672 Add MTR tests covering key and key segment flags and types
Adding debug output for key and keyseg flags at ha_myisam::open() time. So now there are three points of debug output: 1. In the very end of mysql_prepare_create_table() 2. In ha_myisam::create(), after the table2myisam() call 3. In ha_myisan::open(), after the mi_open() call mi_create(), which is is called between 2 and 3, modifies flags for some data types, so the output in 2 and 3 is different.
Diffstat (limited to 'storage/myisam')
-rw-r--r--storage/myisam/ha_myisam.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc
index 6c58a26c260..3a2e886e6ce 100644
--- a/storage/myisam/ha_myisam.cc
+++ b/storage/myisam/ha_myisam.cc
@@ -860,6 +860,13 @@ int ha_myisam::open(const char *name, int mode, uint test_if_locked)
/* purecov: end */
}
}
+
+ DBUG_EXECUTE_IF("key",
+ Debug_key_myisam::print_keys_myisam(table->in_use,
+ "ha_myisam::open: ",
+ table, file->s->keyinfo,
+ file->s->base.keys);
+ );
if (test_if_locked & (HA_OPEN_IGNORE_IF_LOCKED | HA_OPEN_TMP_TABLE))
(void) mi_extra(file, HA_EXTRA_NO_WAIT_LOCK, 0);