summaryrefslogtreecommitdiff
path: root/storage/sphinx
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/sphinx
parentc55c292832e2776d37e06c43174ac006e00143a2 (diff)
downloadmariadb-git-b014720b6c05c8f8c08ffad263aff3273ff3d253.tar.gz
optimization: use hton->drop_table in few simple cases
Diffstat (limited to 'storage/sphinx')
-rw-r--r--storage/sphinx/ha_sphinx.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/sphinx/ha_sphinx.cc b/storage/sphinx/ha_sphinx.cc
index d60a4d229e6..39e07290853 100644
--- a/storage/sphinx/ha_sphinx.cc
+++ b/storage/sphinx/ha_sphinx.cc
@@ -749,6 +749,7 @@ static int sphinx_init_func ( void * p )
hton->close_connection = sphinx_close_connection;
hton->show_status = sphinx_show_status;
hton->panic = sphinx_panic;
+ hton->drop_table= [](handlerton *, const char*) { return 0; };
hton->flags = HTON_CAN_RECREATE | HTON_AUTOMATIC_DELETE_TABLE;
#endif
}