summaryrefslogtreecommitdiff
path: root/storage/myisam/ha_myisam.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-06-14 11:48:50 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-04 01:44:46 +0200
commitb014720b6c05c8f8c08ffad263aff3273ff3d253 (patch)
tree79403ae2af98a242db7612e32f7eb11e2e17a4a2 /storage/myisam/ha_myisam.cc
parentc55c292832e2776d37e06c43174ac006e00143a2 (diff)
downloadmariadb-git-b014720b6c05c8f8c08ffad263aff3273ff3d253.tar.gz
optimization: use hton->drop_table in few simple cases
Diffstat (limited to 'storage/myisam/ha_myisam.cc')
-rw-r--r--storage/myisam/ha_myisam.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc
index e7ca765351b..e58ee9e31e4 100644
--- a/storage/myisam/ha_myisam.cc
+++ b/storage/myisam/ha_myisam.cc
@@ -2512,6 +2512,11 @@ int myisam_panic(handlerton *hton, ha_panic_function flag)
return mi_panic(flag);
}
+static int myisam_drop_table(handlerton *hton, const char *path)
+{
+ return mi_delete_table(path);
+}
+
static int myisam_init(void *p)
{
handlerton *hton;
@@ -2529,6 +2534,7 @@ static int myisam_init(void *p)
hton= (handlerton *)p;
hton->db_type= DB_TYPE_MYISAM;
hton->create= myisam_create_handler;
+ hton->drop_table= myisam_drop_table;
hton->panic= myisam_panic;
hton->flags= HTON_CAN_RECREATE | HTON_SUPPORT_LOG_TABLES;
hton->tablefile_extensions= ha_myisam_exts;