1. 21 Sep, 2017 11 commits
    • Marko Mäkelä's avatar
      Remove unnecessary use of rec_get_nth_cfield() and unnecessary copying · a231bcba
      Marko Mäkelä authored
      rec_get_nth_cfield(): Remove the heap parameter.
      Copying the default value of a field into a heap is only
      needed in row_build_low(type=ROW_COPY_DATA).
      
      rec_get_nth_field(): Use the original definition.
      There are very few rec_get_nth_cfield() calls compared to
      rec_get_nth_field().
      a231bcba
    • Marko Mäkelä's avatar
      Remove code duplication in rem0rec.ic · 5af53464
      Marko Mäkelä authored
      Assert that the flags EXTERNAL, DEFAULT, and NULL are mutually exclusive.
      5af53464
    • Marko Mäkelä's avatar
      Remove dict_col_def_t · dce195b1
      Marko Mäkelä authored
      Store dict_col_t::def_val inline, using an anonymous struct.
      
      dict_mem_table_fake_nth_col_default(),
      dict_col_set_added_column_default(): Remove.
      
      dict_mem_fill_column_struct(): Initialize def_val.
      dce195b1
    • Marko Mäkelä's avatar
      Various fixes for ROW_FORMAT=REDUNDANT · bfb3d327
      Marko Mäkelä authored
      rec_get_offsets(): Use the 'leaf' parameter for non-debug purposes.
      Initialize all fields for ROW_FORMAT=REDUNDANT records that precede
      an instant ADD COLUMN.
      
      rec_offs_make_valid(): Add the parameter 'leaf'.
      
      rec_copy_prefix_to_dtuple(): Assert that the tuple is only built
      on the core fields. Instant ADD COLUMN only applies to the
      clustered index, and we should never build a search key that has
      more than the PRIMARY KEY and possibly DB_TRX_ID,DB_ROLL_PTR.
      All these columns are always present.
      
      dict_index_build_data_tuple(): Remove assertions that would be
      duplicated in rec_copy_prefix_to_dtuple().
      
      rec_get_n_nullable(): Get the number of nullable columns.
      
      rec_init_offsets(): Support ROW_FORMAT=REDUNDANT records that
      were written before instant ADD COLUMN.
      
      cmp_rec_rec_with_match(): Implement comparison of MIN_REC_FLAG records.
      bfb3d327
    • Marko Mäkelä's avatar
      MDEV-11369 Rewrite innodb.instant_alter test · 84167947
      Marko Mäkelä authored
      Create each table with a SPATIAL INDEX, because when MySQL 5.7
      (and MariaDB 10.2.2) introduced SPATIAL INDEX for InnoDB tables,
      a table-rebuilding LOCK=NONE would be refused if the table
      contains any SPATIAL INDEX. With instant ADD COLUMN, the operations
      must be allowed, and must report '0 rows affected' for everything
      else except ROW_FORMAT=COMPRESSED tables.
      
      FIXME: When instant ADD COLUMN is enabled, the ALGORITHM=INPLACE
      will have to be changed to LOCK=NONE.
      84167947
    • Marko Mäkelä's avatar
      Merge 10.3 into 10.3-instant · 0729217e
      Marko Mäkelä authored
      0729217e
    • Marko Mäkelä's avatar
      Merge bb-10.2-ext into 10.3 · e3d44f5d
      Marko Mäkelä authored
      e3d44f5d
    • Marko Mäkelä's avatar
      Merge 10.2 into bb-10.2-ext · f70865bc
      Marko Mäkelä authored
      f70865bc
    • Marko Mäkelä's avatar
      After-merge fix: Adjust one more result · c7cc3d04
      Marko Mäkelä authored
      c7cc3d04
    • Marko Mäkelä's avatar
      Merge 10.2 into bb-10.2-ext · 916cd784
      Marko Mäkelä authored
      916cd784
    • Marko Mäkelä's avatar
      After-merge fix: Adjust some results. · 72a80242
      Marko Mäkelä authored
      72a80242
  2. 20 Sep, 2017 19 commits
  3. 19 Sep, 2017 10 commits