From 65831bca6f516db383c1bc04884b65b9fa7b6926 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Tue, 26 Feb 2013 21:20:15 +0100 Subject: MDEV-4203 : fix maria SE repair functions (wrong operator precedence) --- storage/maria/ma_check.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'storage/maria') diff --git a/storage/maria/ma_check.c b/storage/maria/ma_check.c index 9ce8e42cae0..b97e66da7ce 100644 --- a/storage/maria/ma_check.c +++ b/storage/maria/ma_check.c @@ -3960,8 +3960,8 @@ int maria_repair_by_sort(HA_CHECK *param, register MARIA_HA *info, if (rep_quick && (param->testflag & T_FORCE_UNIQUENESS)) { - my_off_t skr= (share->state.state.data_file_length + - (sort_info.org_data_file_type == COMPRESSED_RECORD) ? + my_off_t skr= share->state.state.data_file_length + + ((sort_info.org_data_file_type == COMPRESSED_RECORD) ? MEMMAP_EXTRA_MARGIN : 0); #ifdef USE_RELOC if (sort_info.org_data_file_type == STATIC_RECORD && @@ -4482,8 +4482,8 @@ int maria_repair_parallel(HA_CHECK *param, register MARIA_HA *info, if (rep_quick && (param->testflag & T_FORCE_UNIQUENESS)) { - my_off_t skr= (share->state.state.data_file_length + - (sort_info.org_data_file_type == COMPRESSED_RECORD) ? + my_off_t skr= share->state.state.data_file_length + + ((sort_info.org_data_file_type == COMPRESSED_RECORD) ? MEMMAP_EXTRA_MARGIN : 0); #ifdef USE_RELOC if (sort_info.org_data_file_type == STATIC_RECORD && -- cgit v1.2.1