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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/maria/ma_rename.c b/storage/maria/ma_rename.c
index 24a5e15d9cf..e9501d21350 100644
--- a/storage/maria/ma_rename.c
+++ b/storage/maria/ma_rename.c
@@ -95,7 +95,8 @@ int maria_rename(const char *old_name, const char *new_name)
store LSN into file, needed for Recovery to not be confused if a
RENAME happened (applying REDOs to the wrong table).
*/
- if (_ma_update_state_lsns(share, lsn, TRUE, TRUE))
+ if (_ma_update_state_lsns(share, lsn, share->state.create_trid, TRUE,
+ TRUE))
{
maria_close(info);
DBUG_RETURN(1);