Commit e31ffa24 authored by unknown's avatar unknown

making XA tree to compile (and pass tests) in -max build


sql/ha_ndbcluster.cc:
  incorporating changes from Martin
sql/ha_ndbcluster.h:
  incorporating changes from Martin
sql/item_func.h:
  remove a warning
sql/sql_yacc.yy:
  remove a warning
parent 7aa1d93f
...@@ -761,7 +761,7 @@ int ha_archive::rnd_next(byte *buf) ...@@ -761,7 +761,7 @@ int ha_archive::rnd_next(byte *buf)
void ha_archive::position(const byte *record) void ha_archive::position(const byte *record)
{ {
DBUG_ENTER("ha_archive::position"); DBUG_ENTER("ha_archive::position");
ha_store_ptr(ref, ref_length, current_position); my_store_ptr(ref, ref_length, current_position);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
...@@ -778,7 +778,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos) ...@@ -778,7 +778,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
DBUG_ENTER("ha_archive::rnd_pos"); DBUG_ENTER("ha_archive::rnd_pos");
statistic_increment(table->in_use->status_var.ha_read_rnd_next_count, statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
&LOCK_status); &LOCK_status);
current_position= ha_get_ptr(pos, ref_length); current_position= my_get_ptr(pos, ref_length);
z_off_t seek= gzseek(archive, current_position, SEEK_SET); z_off_t seek= gzseek(archive, current_position, SEEK_SET);
DBUG_RETURN(get_row(archive, buf)); DBUG_RETURN(get_row(archive, buf));
......
...@@ -106,6 +106,6 @@ public: ...@@ -106,6 +106,6 @@ public:
enum thr_lock_type lock_type); enum thr_lock_type lock_type);
}; };
bool archive_db_init(void); handlerton *archive_db_init(void);
bool archive_db_end(void); bool archive_db_end(void);
This diff is collapsed.
...@@ -74,6 +74,8 @@ class Thd_ndb { ...@@ -74,6 +74,8 @@ class Thd_ndb {
Ndb *ndb; Ndb *ndb;
ulong count; ulong count;
uint lock_count; uint lock_count;
NdbTransaction *all;
NdbTransaction *stmt;
int error; int error;
}; };
...@@ -286,14 +288,9 @@ private: ...@@ -286,14 +288,9 @@ private:
extern struct show_var_st ndb_status_variables[]; extern struct show_var_st ndb_status_variables[];
bool ndbcluster_init(void); handlerton *ndbcluster_init(void);
bool ndbcluster_end(void); bool ndbcluster_end(void);
int ndbcluster_commit(THD *thd, void* ndb_transaction);
int ndbcluster_rollback(THD *thd, void* ndb_transaction);
void ndbcluster_close_connection(THD *thd);
int ndbcluster_discover(THD* thd, const char* dbname, const char* name, int ndbcluster_discover(THD* thd, const char* dbname, const char* name,
const void** frmblob, uint* frmlen); const void** frmblob, uint* frmlen);
int ndbcluster_find_files(THD *thd,const char *db,const char *path, int ndbcluster_find_files(THD *thd,const char *db,const char *path,
......
...@@ -348,7 +348,7 @@ class Item_func_div :public Item_num_op ...@@ -348,7 +348,7 @@ class Item_func_div :public Item_num_op
{ {
public: public:
Item_func_div(Item *a,Item *b) :Item_num_op(a,b) {} Item_func_div(Item *a,Item *b) :Item_num_op(a,b) {}
longlong int_op() { DBUG_ASSERT(0); } longlong int_op() { DBUG_ASSERT(0); return 0; }
double real_op(); double real_op();
my_decimal *decimal_op(my_decimal *); my_decimal *decimal_op(my_decimal *);
const char *func_name() const { return "/"; } const char *func_name() const { return "/"; }
......
...@@ -1924,7 +1924,7 @@ sp_proc_stmt: ...@@ -1924,7 +1924,7 @@ sp_proc_stmt:
sp_instr_set *i = new sp_instr_set(lex->sphead->instructions(), sp_instr_set *i = new sp_instr_set(lex->sphead->instructions(),
lex->spcont, lex->spcont,
offset, $2, MYSQL_TYPE_STRING); offset, $2, MYSQL_TYPE_STRING);
LEX_STRING dummy={"", 0}; LEX_STRING dummy={(char*)"", 0};
lex->spcont->push_pvar(&dummy, MYSQL_TYPE_STRING, sp_param_in); lex->spcont->push_pvar(&dummy, MYSQL_TYPE_STRING, sp_param_in);
i->tables= lex->query_tables; i->tables= lex->query_tables;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment