summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2005-11-10 08:24:21 -0800
committerunknown <brian@zim.(none)>2005-11-10 08:24:21 -0800
commitfca8f01abcc7ba150773cda3aeb5322a95a210d5 (patch)
treead803d0cd2c9f0ef981d67cce5ae9d1e1ce6b581 /sql/handler.h
parent75fab5146f0c230115ddc6e2e1e0f1b9c213f3d5 (diff)
downloadmariadb-git-fca8f01abcc7ba150773cda3aeb5322a95a210d5.tar.gz
Added handlerton flag to make storage engines invisable via flag.
mysql-test/r/ps_1general.result: Remove binlog from visable engine list. sql/handler.h: Added documentation to HTON's sql/log.cc: binlog now has hidden flag show that it does now show up in show storage engine list. sql/sql_show.cc: Flag removes engines from view in show storage engines
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/handler.h b/sql/handler.h
index e317f95b990..be188f7cacd 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -401,8 +401,9 @@ struct show_table_alias_st {
/* Possible flags of a handlerton */
#define HTON_NO_FLAGS 0
#define HTON_CLOSE_CURSORS_AT_COMMIT (1 << 0)
-#define HTON_ALTER_NOT_SUPPORTED (1 << 1)
-#define HTON_CAN_RECREATE (1 << 2)
+#define HTON_ALTER_NOT_SUPPORTED (1 << 1) //Engine does not support alter
+#define HTON_CAN_RECREATE (1 << 2) //Delete all is used fro truncate
+#define HTON_HIDDEN (1 << 3) //Engine does not appear in lists
typedef struct st_thd_trans
{