summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2006-08-25 13:31:15 -0700
committerunknown <brian@zim.(none)>2006-08-25 13:31:15 -0700
commitac11ba6c68f6cde4f77a5b853dbd457f1098d33e (patch)
tree825c18473a6c308d0d012e1296f6a6d742e60552 /sql/handler.h
parent4ec86b1c0453c18092a9f66292b19afbceadd9dc (diff)
downloadmariadb-git-ac11ba6c68f6cde4f77a5b853dbd457f1098d33e.tar.gz
Cleanup of unused variables.
Fixed "discover" in the handler API. Fixed problem where handlerton was not zero'ed. I need to look around, I suspect this problem is more widespread. sql/ha_innodb.h: Unused variable sql/ha_ndbcluster.cc: Added "discover" to handlerton. sql/handler.cc: Added plugin loop and correctly now use handler API. sql/handler.h: Removed unused variable. Added discover to handler API sql/mysqld.cc: Removed unused variables. sql/sql_plugin.cc: Fixed DBUG Enter comment (obvious cut paste mistake) storage/csv/ha_tina.cc: Found that if we don't bzero handlerton, that things can go boom! This probably needs to be fixed for all handlers
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 201a2f1980a..bfc502b0658 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -667,6 +667,8 @@ struct handlerton
enum handler_create_iterator_result
(*create_iterator)(enum handler_iterator_type type,
struct handler_iterator *fill_this_in);
+ int (*discover)(THD* thd, const char *db, const char *name,
+ const void** frmblob, uint* frmlen);
};
@@ -1589,7 +1591,6 @@ private:
/* Some extern variables used with handlers */
-extern handlerton *sys_table_types[];
extern const char *ha_row_type[];
extern TYPELIB tx_isolation_typelib;
extern TYPELIB myisam_stats_method_typelib;