Commit 0816d9a7 authored by unknown's avatar unknown

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
parent f83bd712
......@@ -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"
};
......@@ -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");
/*
......
......@@ -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;
......
......@@ -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) ||
......
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