Commit c4cc1173 authored by unknown's avatar unknown

Fixes for changes in handler interface so that tina can compile in 5.0.


sql/examples/ha_tina.cc:
  Fixes for changes to handler interface.
parent 3a5f7eab
...@@ -426,7 +426,7 @@ int ha_tina::write_row(byte * buf) ...@@ -426,7 +426,7 @@ int ha_tina::write_row(byte * buf)
int size; int size;
DBUG_ENTER("ha_tina::write_row"); DBUG_ENTER("ha_tina::write_row");
statistic_increment(ha_write_count,&LOCK_status); statistic_increment(table->in_use->status_var.ha_write_count, &LOCK_status);
if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT) if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT)
table->timestamp_field->set_time(); table->timestamp_field->set_time();
...@@ -462,7 +462,8 @@ int ha_tina::update_row(const byte * old_data, byte * new_data) ...@@ -462,7 +462,8 @@ int ha_tina::update_row(const byte * old_data, byte * new_data)
int size; int size;
DBUG_ENTER("ha_tina::update_row"); DBUG_ENTER("ha_tina::update_row");
statistic_increment(ha_update_count,&LOCK_status); statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
&LOCK_status);
if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE) if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE)
table->timestamp_field->set_time(); table->timestamp_field->set_time();
...@@ -489,7 +490,7 @@ int ha_tina::update_row(const byte * old_data, byte * new_data) ...@@ -489,7 +490,7 @@ int ha_tina::update_row(const byte * old_data, byte * new_data)
int ha_tina::delete_row(const byte * buf) int ha_tina::delete_row(const byte * buf)
{ {
DBUG_ENTER("ha_tina::delete_row"); DBUG_ENTER("ha_tina::delete_row");
statistic_increment(ha_delete_count,&LOCK_status); statistic_increment(table->in_use->status_var.ha_delete_count,&LOCK_status);
if (chain_append()) if (chain_append())
DBUG_RETURN(-1); DBUG_RETURN(-1);
...@@ -629,7 +630,8 @@ int ha_tina::rnd_next(byte *buf) ...@@ -629,7 +630,8 @@ int ha_tina::rnd_next(byte *buf)
{ {
DBUG_ENTER("ha_tina::rnd_next"); DBUG_ENTER("ha_tina::rnd_next");
statistic_increment(ha_read_rnd_next_count,&LOCK_status); statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
&LOCK_status);
current_position= next_position; current_position= next_position;
if (!share->mapped_file) if (!share->mapped_file)
...@@ -666,7 +668,8 @@ void ha_tina::position(const byte *record) ...@@ -666,7 +668,8 @@ void ha_tina::position(const byte *record)
int ha_tina::rnd_pos(byte * buf, byte *pos) int ha_tina::rnd_pos(byte * buf, byte *pos)
{ {
DBUG_ENTER("ha_tina::rnd_pos"); DBUG_ENTER("ha_tina::rnd_pos");
statistic_increment(ha_read_rnd_count,&LOCK_status); statistic_increment(table->in_use->status_var.ha_read_rnd_next_count,
&LOCK_status);
current_position= ha_get_ptr(pos,ref_length); current_position= ha_get_ptr(pos,ref_length);
DBUG_RETURN(find_current_row(buf)); DBUG_RETURN(find_current_row(buf));
} }
......
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