summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_blackhole.cc')
-rw-r--r--sql/ha_blackhole.cc22
1 files changed, 20 insertions, 2 deletions
diff --git a/sql/ha_blackhole.cc b/sql/ha_blackhole.cc
index 2505919af39..3503f5bec1b 100644
--- a/sql/ha_blackhole.cc
+++ b/sql/ha_blackhole.cc
@@ -20,9 +20,12 @@
#endif
#include "mysql_priv.h"
-#ifdef HAVE_BLACKHOLE_DB
#include "ha_blackhole.h"
+/* Static declarations for handlerton */
+
+static handler *blackhole_create_handler(TABLE *table);
+
/* Blackhole storage engine handlerton */
@@ -47,9 +50,25 @@ handlerton blackhole_hton= {
NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */
NULL, /* close_cursor_read_view */
+ blackhole_create_handler, /* Create a new handler */
+ NULL, /* Drop a database */
+ NULL, /* Panic call */
+ NULL, /* Release temporary latches */
+ NULL, /* Update Statistics */
+ NULL, /* Start Consistent Snapshot */
+ NULL, /* Flush logs */
+ NULL, /* Show status */
+ NULL, /* Replication Report Sent Binlog */
HTON_CAN_RECREATE
};
+
+static handler *blackhole_create_handler(TABLE *table)
+{
+ return new ha_blackhole(table);
+}
+
+
/*****************************************************************************
** BLACKHOLE tables
*****************************************************************************/
@@ -227,4 +246,3 @@ int ha_blackhole::index_last(byte * buf)
DBUG_RETURN(HA_ERR_END_OF_FILE);
}
-#endif /* HAVE_BLACKHOLE_DB */