1. 11 Nov, 2021 1 commit
  2. 09 Nov, 2021 9 commits
  3. 08 Nov, 2021 9 commits
  4. 05 Nov, 2021 4 commits
  5. 04 Nov, 2021 2 commits
  6. 03 Nov, 2021 6 commits
    • Sergei Krivonos's avatar
      2df99f21
    • Oleksandr Byelkin's avatar
      Merge branch '10.4' into 10.5 · bc82c622
      Oleksandr Byelkin authored
      bc82c622
    • Oleksandr Byelkin's avatar
      Merge branch '10.3' into 10.4 · 3021b929
      Oleksandr Byelkin authored
      3021b929
    • Oleksandr Byelkin's avatar
      Merge branch '10.2' into 10.3 · 69c70c18
      Oleksandr Byelkin authored
      69c70c18
    • Aleksey Midenkov's avatar
      MDEV-25555 Server crashes in tree_record_pos after INPLACE-recreating index on HEAP table · 5cae401b
      Aleksey Midenkov authored
      Drop and add same key is considered rename (look ALTER_RENAME_INDEX in
      fill_alter_inplace_info()). But in this case order of keys may be
      changed, because mysql_prepare_alter_table() yet does not know about
      rename and treats 2 operations: drop and add.
      
      In that case we disable inplace algorithm for such engines as Memory,
      MyISAM and Aria with ALTER_INDEX_ORDER flag. These engines have no
      specialized check_if_supported_inplace_alter() and default
      handler::check_if_supported_inplace_alter() sees an unknown flag and
      returns HA_ALTER_INPLACE_NOT_SUPPORTED.
      
      ha_innobase::check_if_supported_inplace_alter() works differently and
      inplace is not disabled (with the help of modified
      INNOBASE_INPLACE_IGNORE). add_drop_v_cols fork was also tweaked as it
      wrongly failed with MSG_UNSUPPORTED_ALTER_ONLINE_ON_VIRTUAL_COLUMN
      when it seen ALTER_INDEX_ORDER.
      
      No-op operation must be still no-op no matter of ALTER_INDEX_ORDER
      presence, so we tweek its condition as well.
      5cae401b
    • Aleksey Midenkov's avatar
      MDEV-25803 Inplace ALTER breaks MyISAM/Aria table when order of keys is changed · b3bdc1c1
      Aleksey Midenkov authored
      mysql_prepare_create_table() does my_qsort(sort_keys) on key
      info. This sorting is indeterministic: a table is created with one
      order and inplace alter may overwrite frm with another order. Since
      inplace alter does nothing about key info for MyISAM/Aria storage
      engines this results in discrepancy between frm and storage engine key
      definitions.
      
      The fix avoids the sorting of keys when no new keys added by ALTER
      (and this is ok for MyISAM/Aria since it cannot add new keys inplace).
      
      There is a case when implicit primary key may be changed when removing
      NOT NULL from the part of unique key. In that case we update
      modified_primary_key which is then used to not skip key sorting.
      
      According to is_candidate_key() there is no other cases when primary
      key may be changed implicitly.
      
      Notes:
      
      mi_keydef_write()/mi_keyseg_write() are used only in mi_create(). They
      should be used in ha_inplace_alter_table() as well.
      
      Aria corruption detection is unimplemented: maria_check_definition()
      is never used!
      
      MySQL 8.0 has this bug as well as of 8.0.26.
      b3bdc1c1
  7. 02 Nov, 2021 9 commits