summaryrefslogtreecommitdiff
path: root/storage/maria/ma_extra.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_extra.c')
-rw-r--r--storage/maria/ma_extra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/maria/ma_extra.c b/storage/maria/ma_extra.c
index 94e5e448b09..425cb421e22 100644
--- a/storage/maria/ma_extra.c
+++ b/storage/maria/ma_extra.c
@@ -174,7 +174,7 @@ int maria_extra(MARIA_HA *info, enum ha_extra_function function,
if ((error= flush_io_cache(&info->rec_cache)))
{
/* Fatal error found */
- _ma_set_fatal_error(share, HA_ERR_CRASHED);
+ _ma_set_fatal_error(info, HA_ERR_CRASHED);
}
}
break;
@@ -441,7 +441,7 @@ int maria_extra(MARIA_HA *info, enum ha_extra_function function,
{
/* Fatal error found */
share->changed= 1;
- _ma_set_fatal_error(share, HA_ERR_CRASHED);
+ _ma_set_fatal_error(info, HA_ERR_CRASHED);
}
}
mysql_mutex_unlock(&share->intern_lock);
@@ -584,6 +584,7 @@ int maria_reset(MARIA_HA *info)
info->page_changed= 1;
info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
HA_STATE_PREV_FOUND);
+ info->error_count= 0;
DBUG_RETURN(error);
}
@@ -665,7 +666,7 @@ int _ma_flush_table_files(MARIA_HA *info, uint flush_data_or_index,
if (!error)
DBUG_RETURN(0);
- _ma_set_fatal_error(info->s, HA_ERR_CRASHED);
+ _ma_set_fatal_error(info, HA_ERR_CRASHED);
DBUG_RETURN(1);
}