summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-02-17 22:52:40 +0100
committerunknown <serg@serg.mylan>2005-02-17 22:52:40 +0100
commit5bb886719511589e5fa7175a595073cdc5410516 (patch)
tree69754bd181cb50e10c039823f974f704f477ef27 /sql/examples
parent14fe961a01cf225592bf87ac7768261322f8400f (diff)
downloadmariadb-git-5bb886719511589e5fa7175a595073cdc5410516.tar.gz
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
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_archive.cc6
-rw-r--r--sql/examples/ha_archive.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index 070469819ee..98ed65fc786 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -752,7 +752,7 @@ int ha_archive::rnd_next(byte *buf)
}
-/*
+/*
Thanks to the table flag HA_REC_NOT_IN_SEQ this will be called after
each call to ha_archive::rnd_next() if an ordering of the rows is
needed.
@@ -761,7 +761,7 @@ int ha_archive::rnd_next(byte *buf)
void ha_archive::position(const byte *record)
{
DBUG_ENTER("ha_archive::position");
- ha_store_ptr(ref, ref_length, current_position);
+ my_store_ptr(ref, ref_length, current_position);
DBUG_VOID_RETURN;
}
@@ -778,7 +778,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
DBUG_ENTER("ha_archive::rnd_pos");
statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
&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);
DBUG_RETURN(get_row(archive, buf));
diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h
index a511b5c67d6..e2c40c880a4 100644
--- a/sql/examples/ha_archive.h
+++ b/sql/examples/ha_archive.h
@@ -106,6 +106,6 @@ public:
enum thr_lock_type lock_type);
};
-bool archive_db_init(void);
+handlerton *archive_db_init(void);
bool archive_db_end(void);