summaryrefslogtreecommitdiff
path: root/storage/blackhole
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/blackhole
parentc55c292832e2776d37e06c43174ac006e00143a2 (diff)
downloadmariadb-git-b014720b6c05c8f8c08ffad263aff3273ff3d253.tar.gz
optimization: use hton->drop_table in few simple cases
Diffstat (limited to 'storage/blackhole')
-rw-r--r--storage/blackhole/ha_blackhole.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/blackhole/ha_blackhole.cc b/storage/blackhole/ha_blackhole.cc
index 98589f1d043..82ac9123d3b 100644
--- a/storage/blackhole/ha_blackhole.cc
+++ b/storage/blackhole/ha_blackhole.cc
@@ -399,6 +399,7 @@ static int blackhole_init(void *p)
blackhole_hton= (handlerton *)p;
blackhole_hton->db_type= DB_TYPE_BLACKHOLE_DB;
blackhole_hton->create= blackhole_create_handler;
+ blackhole_hton->drop_table= [](handlerton *, const char*) { return 0; };
blackhole_hton->flags= HTON_CAN_RECREATE | HTON_AUTOMATIC_DELETE_TABLE;
mysql_mutex_init(bh_key_mutex_blackhole,