summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.h
diff options
context:
space:
mode:
authorunknown <paul@kite-hub.kitebird.com>2004-09-14 11:17:02 -0500
committerunknown <paul@kite-hub.kitebird.com>2004-09-14 11:17:02 -0500
commitd467ad24c3cef5561afda400909a7a3cd530f2b4 (patch)
treef2308ef57530a69acb7ad6b13b5721920858f7e2 /sql/ha_ndbcluster.h
parentbb5383172aa17487f08fdb0855b49a7ce1244137 (diff)
parent6829605c4a867dee4dc7c50e954d6da6557dae16 (diff)
downloadmariadb-git-d467ad24c3cef5561afda400909a7a3cd530f2b4.tar.gz
Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1
into kite-hub.kitebird.com:/src/extern/MySQL/bk/mysql-4.1
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h
index c49a6078e7a..7c00af6d5e6 100644
--- a/sql/ha_ndbcluster.h
+++ b/sql/ha_ndbcluster.h
@@ -63,6 +63,20 @@ typedef struct st_ndbcluster_share {
uint table_name_length,use_count;
} NDB_SHARE;
+/*
+ Place holder for ha_ndbcluster thread specific data
+*/
+
+class Thd_ndb {
+ public:
+ Thd_ndb();
+ ~Thd_ndb();
+ Ndb *ndb;
+ ulong count;
+ uint lock_count;
+ int error;
+};
+
class ha_ndbcluster: public handler
{
public:
@@ -147,8 +161,8 @@ class ha_ndbcluster: public handler
void start_bulk_insert(ha_rows rows);
int end_bulk_insert();
- static Ndb* seize_ndb();
- static void release_ndb(Ndb* ndb);
+ static Thd_ndb* seize_thd_ndb();
+ static void release_thd_ndb(Thd_ndb* thd_ndb);
uint8 table_cache_type() { return HA_CACHE_TBL_NOCACHE; }
private:
@@ -214,7 +228,8 @@ class ha_ndbcluster: public handler
NdbConnection *m_active_trans;
NdbResultSet *m_active_cursor;
Ndb *m_ndb;
- void *m_table;
+ void *m_table;
+ void *m_table_info;
char m_dbname[FN_HEADLEN];
//char m_schemaname[FN_HEADLEN];
char m_tabname[FN_HEADLEN];
@@ -238,6 +253,12 @@ class ha_ndbcluster: public handler
char *blobs_buffer;
uint32 blobs_buffer_size;
uint dupkey;
+
+ void records_update();
+ void no_uncommitted_rows_execute_failure();
+ void no_uncommitted_rows_update(int);
+ void no_uncommitted_rows_init(THD *);
+ void no_uncommitted_rows_reset(THD *);
};
bool ndbcluster_init(void);