diff options
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 6 | ||||
-rw-r--r-- | sql/examples/ha_archive.h | 2 |
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); |