summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.h
diff options
context:
space:
mode:
authorunknown <mskold@mysql.com>2006-01-17 18:35:15 +0100
committerunknown <mskold@mysql.com>2006-01-17 18:35:15 +0100
commit07ca9520be08deca7487d5d57edff6ea3900f297 (patch)
tree53aa2e7469e5ba46c68e090c61451c08613604c4 /sql/ha_ndbcluster.h
parent926e52c863ac73166cfe7ca445c1a8cec9a5e3c0 (diff)
parente1f7baf1a0fa867dfed12b08280b4c027eea0683 (diff)
downloadmariadb-git-07ca9520be08deca7487d5d57edff6ea3900f297.tar.gz
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.1-new sql/sql_table.cc: Auto merged sql/ha_ndbcluster.h: Auto merged sql/ha_ndbcluster.cc: Auto merged
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h
index c36cefcf5b5..73b1b27ede2 100644
--- a/sql/ha_ndbcluster.h
+++ b/sql/ha_ndbcluster.h
@@ -80,10 +80,12 @@ typedef union { const NdbRecAttr *rec; NdbBlob *blob; void *ptr; } NdbValue;
typedef enum {
NSS_INITIAL= 0,
- NSS_DROPPED
+ NSS_DROPPED,
+ NSS_ALTERED
} NDB_SHARE_STATE;
typedef struct st_ndbcluster_share {
+ NDB_SHARE_STATE state;
MEM_ROOT mem_root;
THR_LOCK lock;
pthread_mutex_t mutex;
@@ -97,7 +99,6 @@ typedef struct st_ndbcluster_share {
char *table_name;
#ifdef HAVE_NDB_BINLOG
uint32 flags;
- NDB_SHARE_STATE state;
NdbEventOperation *op;
NdbEventOperation *op_old; // for rename table
char *old_names; // for rename table
@@ -579,6 +580,7 @@ class ha_ndbcluster: public handler
int rename_table(const char *from, const char *to);
int delete_table(const char *name);
int create(const char *name, TABLE *form, HA_CREATE_INFO *info);
+ int create_handler_files(const char *file);
int get_default_no_partitions(ulonglong max_rows);
bool get_no_parts(const char *name, uint *no_parts);
void set_auto_partitions(partition_info *part_info);
@@ -669,6 +671,7 @@ private:
int create_index(const char *name, KEY *key_info,
NDB_INDEX_TYPE idx_type, uint idx_no);
int drop_ndb_index(const char *name);
+ int table_changed(const void *pack_frm_data, uint pack_frm_len);
// Index list management
int create_indexes(Ndb *ndb, TABLE *tab);
void clear_index(int i);