Commit b8084584 authored by unknown's avatar unknown

compiler warnings


storage/maria/ma_check.c:
  fix for important compiler warning
storage/maria/ma_recovery.c:
  fix for compiler warning
parent df8cf33e
...@@ -2226,7 +2226,8 @@ int maria_repair(HA_CHECK *param, register MARIA_HA *info, ...@@ -2226,7 +2226,8 @@ int maria_repair(HA_CHECK *param, register MARIA_HA *info,
char llbuff[22],llbuff2[22]; char llbuff[22],llbuff2[22];
MARIA_SORT_INFO sort_info; MARIA_SORT_INFO sort_info;
MARIA_SORT_PARAM sort_param; MARIA_SORT_PARAM sort_param;
my_bool block_record, scan_inited= 0, reenable_logging; my_bool block_record, scan_inited= 0,
reenable_logging= share->now_transactional;
enum data_file_type org_data_file_type= share->data_file_type; enum data_file_type org_data_file_type= share->data_file_type;
myf sync_dir= ((share->now_transactional && !share->temporary) ? myf sync_dir= ((share->now_transactional && !share->temporary) ?
MY_SYNC_DIR : 0); MY_SYNC_DIR : 0);
...@@ -2245,7 +2246,7 @@ int maria_repair(HA_CHECK *param, register MARIA_HA *info, ...@@ -2245,7 +2246,7 @@ int maria_repair(HA_CHECK *param, register MARIA_HA *info,
rep_quick)) rep_quick))
goto err; goto err;
if ((reenable_logging= share->now_transactional)) if (reenable_logging)
_ma_tmp_disable_logging_for_table(info, 0); _ma_tmp_disable_logging_for_table(info, 0);
new_header_length= ((param->testflag & T_UNPACK) ? 0L : new_header_length= ((param->testflag & T_UNPACK) ? 0L :
......
...@@ -2729,6 +2729,7 @@ static MARIA_HA *get_MARIA_HA_from_REDO_record(const ...@@ -2729,6 +2729,7 @@ static MARIA_HA *get_MARIA_HA_from_REDO_record(const
MARIA_SHARE *share; MARIA_SHARE *share;
char llbuf[22]; char llbuf[22];
my_bool index_page_redo_entry= FALSE, page_redo_entry= FALSE; my_bool index_page_redo_entry= FALSE, page_redo_entry= FALSE;
LINT_INIT(page);
print_redo_phase_progress(rec->lsn); print_redo_phase_progress(rec->lsn);
sid= fileid_korr(rec->header); sid= fileid_korr(rec->header);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment