Commit 2de9a774 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge LP Bug#686184

parents c67b8954 077d96c2
...@@ -61,7 +61,7 @@ int mi_close(register MI_INFO *info) ...@@ -61,7 +61,7 @@ int mi_close(register MI_INFO *info)
if (flag) if (flag)
{ {
DBUG_EXECUTE_IF("crash_before_flush_keys", DBUG_EXECUTE_IF("crash_before_flush_keys",
if (share->kfile >= 0) abort();); if (share->kfile >= 0) DBUG_ABORT(););
if (share->kfile >= 0 && if (share->kfile >= 0 &&
flush_key_blocks(share->key_cache, share->kfile, flush_key_blocks(share->key_cache, share->kfile,
&share->dirty_part_map, &share->dirty_part_map,
......
...@@ -116,7 +116,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -116,7 +116,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
dflt_key_cache); dflt_key_cache);
DBUG_EXECUTE_IF("myisam_pretend_crashed_table_on_open", DBUG_EXECUTE_IF("myisam_pretend_crashed_table_on_open",
if (strstr(name, "/crashed")) if (strstr(name, "crashed"))
{ {
my_errno= HA_ERR_CRASHED; my_errno= HA_ERR_CRASHED;
goto err; goto err;
......
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