[Commits] Rev 3184: MDEV-4203 : fix maria SE repair functions (wrong operator precedence) in file:///H:/bzr/5.1/

Vladislav Vaintroub wlad at montyprogram.com
Tue Feb 26 22:21:17 EET 2013


At file:///H:/bzr/5.1/

------------------------------------------------------------
revno: 3184
revision-id: wlad at montyprogram.com-20130226202015-idyivl9jtkvkc9nn
parent: wlad at montyprogram.com-20130221222026-smtv06294wlahdll
fixes bug: https://mariadb.atlassian.net/browse/MDEV-4203
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.1
timestamp: Tue 2013-02-26 21:20:15 +0100
message:
  MDEV-4203 : fix maria SE repair functions (wrong operator precedence)
-------------- next part --------------
=== modified file 'storage/maria/ma_check.c'
--- a/storage/maria/ma_check.c	2011-11-29 22:34:05 +0000
+++ b/storage/maria/ma_check.c	2013-02-26 20:20:15 +0000
@@ -3960,8 +3960,8 @@ int maria_repair_by_sort(HA_CHECK *param
 
   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 *para
 
   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 &&



More information about the commits mailing list