summaryrefslogtreecommitdiff
path: root/ndb/include/ndbapi
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-05-08 15:19:17 +0200
committerunknown <pekka@mysql.com>2006-05-08 15:19:17 +0200
commitf272d3272a42957b32cb7a1a6ece0cc5ba847561 (patch)
tree8ad03a8ae90b3eb45fd2ec7b56befba20afe0027 /ndb/include/ndbapi
parent47302570e639927b258e10a7c009e6d585ba8adf (diff)
downloadmariadb-git-f272d3272a42957b32cb7a1a6ece0cc5ba847561.tar.gz
ndb - bug#14509, part 1: move autoincr pre-fetch from Ndb to local dict cache
mysql-test/r/ndb_alter_table.result: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id mysql-test/t/ndb_alter_table.test: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/include/ndbapi/Ndb.hpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/src/ndbapi/DictCache.cpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/src/ndbapi/DictCache.hpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/src/ndbapi/Ndb.cpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/src/ndbapi/NdbDictionaryImpl.cpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id ndb/src/ndbapi/Ndbinit.cpp: bug#14509, part 1 move cached autoincr range from Ndb object to local dict cache (Ndb_local_table_info) remove private methods get/read/setTupleId by table name or table id
Diffstat (limited to 'ndb/include/ndbapi')
-rw-r--r--ndb/include/ndbapi/Ndb.hpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/ndb/include/ndbapi/Ndb.hpp b/ndb/include/ndbapi/Ndb.hpp
index 7e2e9037a34..b9f5aa123b8 100644
--- a/ndb/include/ndbapi/Ndb.hpp
+++ b/ndb/include/ndbapi/Ndb.hpp
@@ -984,6 +984,7 @@ class BaseString;
class NdbEventOperation;
class NdbBlob;
class NdbReceiver;
+class Ndb_local_table_info;
template <class T> struct Ndb_free_list_t;
typedef void (* NdbEventCallback)(NdbEventOperation*, Ndb*, void*);
@@ -1443,15 +1444,12 @@ public:
bool increase = false);
bool setAutoIncrementValue(const NdbDictionary::Table * aTable, Uint64 val,
bool increase = false);
- Uint64 getTupleIdFromNdb(const char* aTableName,
- Uint32 cacheSize = 1000);
- Uint64 getTupleIdFromNdb(Uint32 aTableId,
- Uint32 cacheSize = 1000);
- Uint64 readTupleIdFromNdb(Uint32 aTableId);
- bool setTupleIdInNdb(const char* aTableName, Uint64 val,
- bool increase);
- bool setTupleIdInNdb(Uint32 aTableId, Uint64 val, bool increase);
- Uint64 opTupleIdOnNdb(Uint32 aTableId, Uint64 opValue, Uint32 op);
+private:
+ Uint64 getTupleIdFromNdb(Ndb_local_table_info* info, Uint32 cacheSize);
+ Uint64 readTupleIdFromNdb(Ndb_local_table_info* info);
+ bool setTupleIdInNdb(Ndb_local_table_info* info, Uint64 val, bool increase);
+ Uint64 opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 opValue, Uint32 op);
+public:
/**
*/
@@ -1650,11 +1648,6 @@ private:
Uint64 the_last_check_time;
Uint64 theFirstTransId;
-
- // The tupleId is retreived from DB the
- // tupleId is unique for each tableid.
- Uint64 theFirstTupleId[2048];
- Uint64 theLastTupleId[2048];
Uint32 theRestartGCI; // the Restart GCI used by DIHNDBTAMPER