summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.h
diff options
context:
space:
mode:
authorunknown <mskold/marty@linux.site>2006-08-09 15:02:30 +0200
committerunknown <mskold/marty@linux.site>2006-08-09 15:02:30 +0200
commit893ed9fca6b973f7cfa44032d30895de6725683d (patch)
tree30ce5b3f6f84bf93db801ca5f32ba6d462c58627 /sql/ha_ndbcluster.h
parente7fbb26c2af0d92bfcdd30dace54c49de88544a5 (diff)
parentd81ace8775bfbbd6ee752bd618f205456e6964af (diff)
downloadmariadb-git-893ed9fca6b973f7cfa44032d30895de6725683d.tar.gz
Merge mysql.com:/home/marty/MySQL/mysql-5.0
into mysql.com:/home/marty/MySQL/mysql-5.1-ndb mysql-test/r/ndb_read_multi_range.result: Auto merged mysql-test/t/ndb_lock.test: Auto merged mysql-test/t/ndb_read_multi_range.test: Auto merged storage/ndb/include/ndbapi/NdbTransaction.hpp: Auto merged mysql-test/r/ndb_lock.result: Merge (using local) sql/ha_ndbcluster.cc: Merge fix for bug #18184 SELECT ... FOR UPDATE does not work.. sql/ha_ndbcluster.h: Merge fix for bug #18184 SELECT ... FOR UPDATE does not work..
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h
index a9e33491d07..fcb3e72d7e9 100644
--- a/sql/ha_ndbcluster.h
+++ b/sql/ha_ndbcluster.h
@@ -534,6 +534,12 @@ class Ndb_cond_traverse_context
Ndb_rewrite_context *rewrite_stack;
};
+
+typedef enum ndb_query_state_bits {
+ NDB_QUERY_NORMAL = 0,
+ NDB_QUERY_MULTI_READ_RANGE = 1
+} NDB_QUERY_STATE_BITS;
+
/*
Place holder for ha_ndbcluster thread specific data
*/
@@ -571,6 +577,7 @@ class Thd_ndb
int error;
uint32 options;
List<NDB_SHARE> changed_tables;
+ uint query_state;
HASH open_tables;
};
@@ -833,6 +840,8 @@ private:
void no_uncommitted_rows_update(int);
void no_uncommitted_rows_reset(THD *);
+ void release_completed_operations(NdbTransaction*, bool);
+
/*
Condition pushdown
*/
@@ -849,8 +858,8 @@ private:
friend int execute_commit(ha_ndbcluster*, NdbTransaction*);
friend int execute_no_commit_ignore_no_key(ha_ndbcluster*, NdbTransaction*);
- friend int execute_no_commit(ha_ndbcluster*, NdbTransaction*);
- friend int execute_no_commit_ie(ha_ndbcluster*, NdbTransaction*);
+ friend int execute_no_commit(ha_ndbcluster*, NdbTransaction*, bool);
+ friend int execute_no_commit_ie(ha_ndbcluster*, NdbTransaction*, bool);
NdbTransaction *m_active_trans;
NdbScanOperation *m_active_cursor;