summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.h
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-09-14 12:47:34 +0000
committerunknown <tomas@poseidon.(none)>2004-09-14 12:47:34 +0000
commit2ed29f93716a8fa7d20c8a524aec62ea419528a3 (patch)
tree537321da689d9c852c4bf488041139efea7ed757 /sql/ha_ndbcluster.h
parent714667b448f5754628c59c8dc405e8f12f7232f2 (diff)
downloadmariadb-git-2ed29f93716a8fa7d20c8a524aec62ea419528a3.tar.gz
new method to set size of local table data
clearer configure description texts changed Ndb_local_table_info to use create, destroy metods and hidden constructor/destructor move definition if Thd_ndb to .h file and changes seize/release to operate on Thd_ndb instead of Ndb objects moved allocation/deletion of Ndb objects to Thd_ndb ndb/include/ndbapi/NdbDictionary.hpp: new method to set size of local table data ndb/src/mgmsrv/ConfigInfo.cpp: clearer configure description texts ndb/src/ndbapi/DictCache.cpp: changed Ndb_local_table_info to use create, destroy metods and hidden constructor/destructor ndb/src/ndbapi/DictCache.hpp: changed Ndb_local_table_info to use create, destroy metods and hidden constructor/destructor ndb/src/ndbapi/NdbDictionary.cpp: new method to set size of local table data ndb/src/ndbapi/NdbDictionaryImpl.cpp: new method to set size of local table data ndb/src/ndbapi/NdbDictionaryImpl.hpp: new method to set size of local table data sql/ha_ndbcluster.cc: new method to set size of local table data moved allocation/deletion of Ndb objects to Thd_ndb sql/ha_ndbcluster.h: move definition if Thd_ndb to .h file and changes seize/release to operate on Thd_ndb instead of Ndb objects
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h
index 44a6873f4e5..f223ada55b1 100644
--- a/sql/ha_ndbcluster.h
+++ b/sql/ha_ndbcluster.h
@@ -63,6 +63,19 @@ 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;
+};
+
class ha_ndbcluster: public handler
{
public:
@@ -147,8 +160,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: