summaryrefslogtreecommitdiff
path: root/storage/maria/ma_rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_rename.c')
-rw-r--r--storage/maria/ma_rename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_rename.c b/storage/maria/ma_rename.c
index 0650d9f6a56..afa60d87186 100644
--- a/storage/maria/ma_rename.c
+++ b/storage/maria/ma_rename.c
@@ -48,7 +48,7 @@ int maria_rename(const char *old_name, const char *new_name)
_ma_check_table_is_closed(new_name,"rename new table2");
#endif
/** @todo LOCK take X-lock on table */
- if (!(info= maria_open(old_name, O_RDWR, HA_OPEN_FOR_REPAIR)))
+ if (!(info= maria_open(old_name, O_RDWR, HA_OPEN_FOR_REPAIR, 0)))
DBUG_RETURN(my_errno);
share= info->s;
#ifdef USE_RAID