After merge fixes

mysys/my_handler_errors.h:
  Updated error messages
storage/maria/ha_maria.cc:
  After merge fix
storage/maria/ma_rt_key.c:
  Use share->state.state instead of info->state
storage/maria/ma_rt_test.c:
  After merge fix
This commit is contained in:
unknown 2008-05-29 23:56:27 +03:00
parent f83bd712ae
commit 0816d9a70e
4 changed files with 8 additions and 5 deletions

View file

@ -55,13 +55,14 @@ static const char *handler_error_messages[]=
"Failed to get next auto increment value",
"Failed to set row auto increment value",
"Unknown (generic) error from engine",
"Record is the same",
"Record was not update. Original values was same as new values",
"It is not possible to log this statement",
"The event was corrupt, leading to illegal data being read",
"The table is of a new format not supported by this version",
"The event could not be processed no other handler error happened",
"The event could not be processed. No other handler error happened",
"Got a fatal error during initialization of handler",
"File too short; Expected more data in file",
"Read page with wrong checksum"
"Read page with wrong checksum",
"Row is not visible by the current transaction"
};

View file

@ -2859,6 +2859,8 @@ my_bool ha_maria::register_query_cache_table(THD *thd, char *table_name,
*engine_callback,
ulonglong *engine_data)
{
ulonglong actual_data_file_length;
ulonglong current_data_file_length;
DBUG_ENTER("ha_maria::register_query_cache_table");
/*

View file

@ -58,7 +58,7 @@ int maria_rtree_add_key(MARIA_HA *info, const MARIA_KEYDEF *keyinfo,
/* save key */
DBUG_ASSERT(_ma_dpos(info, nod_flag, key + key_length +
share->base.rec_reflength) <
info->state->data_file_length +
share->state.state.data_file_length +
share->base.pack_reclength);
memcpy(key_pos, key, key_length + share->base.rec_reflength);
added_len= key_length + share->base.rec_reflength;

View file

@ -99,7 +99,7 @@ int main(int argc, char *argv[])
if (maria_init() ||
(init_pagecache(maria_pagecache, maria_block_size * 16, 0, 0,
maria_block_size, MY_WME) == 0) ||
ma_control_file_open(TRUE) ||
ma_control_file_open(TRUE, TRUE) ||
(init_pagecache(maria_log_pagecache,
TRANSLOG_PAGECACHE_SIZE, 0, 0,
TRANSLOG_PAGE_SIZE, MY_WME) == 0) ||