diff options
Diffstat (limited to 'myisam/mi_delete_table.c')
-rw-r--r-- | myisam/mi_delete_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/mi_delete_table.c b/myisam/mi_delete_table.c index 360956ad110..995106160ef 100644 --- a/myisam/mi_delete_table.c +++ b/myisam/mi_delete_table.c @@ -37,7 +37,8 @@ int mi_delete_table(const char *name) #ifdef USE_RAID { MI_INFO *info; - if (!(info=mi_open(name, O_RDONLY, 0))) + /* we use 'open_for_repair' to be able to delete a crashed table */ + if (!(info=mi_open(name, O_RDONLY, HA_OPEN_FOR_REPAIR))) DBUG_RETURN(my_errno); raid_type = info->s->base.raid_type; raid_chunks = info->s->base.raid_chunks; |