diff options
Diffstat (limited to 'storage/maria/ma_rename.c')
-rw-r--r-- | storage/maria/ma_rename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/maria/ma_rename.c b/storage/maria/ma_rename.c index 71e2dea9d7e..0650d9f6a56 100644 --- a/storage/maria/ma_rename.c +++ b/storage/maria/ma_rename.c @@ -68,7 +68,7 @@ int maria_rename(const char *old_name, const char *new_name) { LSN lsn; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2]; - uint old_name_len= strlen(old_name)+1, new_name_len= strlen(new_name)+1; + size_t old_name_len= strlen(old_name)+1, new_name_len= strlen(new_name)+1; log_array[TRANSLOG_INTERNAL_PARTS + 0].str= (uchar*)old_name; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= old_name_len; log_array[TRANSLOG_INTERNAL_PARTS + 1].str= (uchar*)new_name; @@ -83,7 +83,7 @@ int maria_rename(const char *old_name, const char *new_name) */ if (unlikely(translog_write_record(&lsn, LOGREC_REDO_RENAME_TABLE, &dummy_transaction_object, NULL, - old_name_len + new_name_len, + (translog_size_t)(old_name_len + new_name_len), sizeof(log_array)/sizeof(log_array[0]), log_array, NULL, NULL) || translog_flush(lsn))) |