@ -1059,8 +1059,6 @@ int ha_maria::close(void)
int ha_maria : : write_row ( uchar * buf )
{
ha_statistic_increment ( & SSV : : ha_write_count ) ;
/* If we have a timestamp column, update it to the current time */
if ( table - > timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT )
table - > timestamp_field - > set_time ( ) ;
@ -2131,7 +2129,6 @@ bool ha_maria::is_crashed() const
int ha_maria : : update_row ( const uchar * old_data , uchar * new_data )
{
CHECK_UNTIL_WE_FULLY_IMPLEMENTED_VERSIONING ( " UPDATE in WRITE CONCURRENT " ) ;
ha_statistic_increment ( & SSV : : ha_update_count ) ;
if ( table - > timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE )
table - > timestamp_field - > set_time ( ) ;
return maria_update ( file , old_data , new_data ) ;
@ -2141,7 +2138,6 @@ int ha_maria::update_row(const uchar * old_data, uchar * new_data)
int ha_maria : : delete_row ( const uchar * buf )
{
CHECK_UNTIL_WE_FULLY_IMPLEMENTED_VERSIONING ( " DELETE in WRITE CONCURRENT " ) ;
ha_statistic_increment ( & SSV : : ha_delete_count ) ;
return maria_delete ( file , buf ) ;
}
@ -2151,7 +2147,6 @@ int ha_maria::index_read_map(uchar * buf, const uchar * key,
enum ha_rkey_function find_flag )
{
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_key_count ) ;
int error = maria_rkey ( file , buf , active_index , key , keypart_map , find_flag ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2162,7 +2157,6 @@ int ha_maria::index_read_idx_map(uchar * buf, uint index, const uchar * key,
key_part_map keypart_map ,
enum ha_rkey_function find_flag )
{
ha_statistic_increment ( & SSV : : ha_read_key_count ) ;
int error = maria_rkey ( file , buf , index , key , keypart_map , find_flag ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2174,7 +2168,6 @@ int ha_maria::index_read_last_map(uchar * buf, const uchar * key,
{
DBUG_ENTER ( " ha_maria::index_read_last_map " ) ;
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_key_count ) ;
int error = maria_rkey ( file , buf , active_index , key , keypart_map ,
HA_READ_PREFIX_LAST ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
@ -2185,7 +2178,6 @@ int ha_maria::index_read_last_map(uchar * buf, const uchar * key,
int ha_maria : : index_next ( uchar * buf )
{
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_next_count ) ;
int error = maria_rnext ( file , buf , active_index ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2195,7 +2187,6 @@ int ha_maria::index_next(uchar * buf)
int ha_maria : : index_prev ( uchar * buf )
{
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_prev_count ) ;
int error = maria_rprev ( file , buf , active_index ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2205,7 +2196,6 @@ int ha_maria::index_prev(uchar * buf)
int ha_maria : : index_first ( uchar * buf )
{
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_first_count ) ;
int error = maria_rfirst ( file , buf , active_index ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2215,7 +2205,6 @@ int ha_maria::index_first(uchar * buf)
int ha_maria : : index_last ( uchar * buf )
{
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_last_count ) ;
int error = maria_rlast ( file , buf , active_index ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2228,7 +2217,6 @@ int ha_maria::index_next_same(uchar * buf,
{
int error ;
DBUG_ASSERT ( inited = = INDEX ) ;
ha_statistic_increment ( & SSV : : ha_read_next_count ) ;
/*
TODO : Delete this loop in Maria 1.5 as versioning will ensure this never
happens
@ -2260,7 +2248,6 @@ int ha_maria::rnd_end()
int ha_maria : : rnd_next ( uchar * buf )
{
ha_statistic_increment ( & SSV : : ha_read_rnd_next_count ) ;
int error = maria_scan ( file , buf ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;
@ -2282,7 +2269,6 @@ int ha_maria::restart_rnd_next(uchar *buf)
int ha_maria : : rnd_pos ( uchar * buf , uchar * pos )
{
ha_statistic_increment ( & SSV : : ha_read_rnd_count ) ;
int error = maria_rrnd ( file , buf , my_get_ptr ( pos , ref_length ) ) ;
table - > status = error ? STATUS_NOT_FOUND : 0 ;
return error ;