1. 18 Mar, 2021 5 commits
    • Marko Mäkelä's avatar
      Merge 10.4 into 10.5 · 190a8312
      Marko Mäkelä authored
      190a8312
    • Marko Mäkelä's avatar
      MDEV-25121: innodb_flush_method=O_DIRECT fails on compressed tables · 12672542
      Marko Mäkelä authored
      Tests with 4096-byte sector size confirm that it is
      safe to use O_DIRECT with page_compressed tables.
      That had been disabled on Linux, in an attempt to fix MDEV-21584
      which had been filed for the O_DIRECT problems earlier.
      
      The fil_node_t::block_size was being set mostly correctly until
      commit 10dd290b (MDEV-17380)
      introduced a regression in MariaDB Server 10.4.4.
      
      fil_node_open_file(): Only avoid setting O_DIRECT on
      ROW_FORMAT=COMPRESSED tables that use KEY_BLOCK_SIZE=1 or 2
      (1024 or 2048 bytes).
      
      fil_ibd_create(): Avoid setting O_DIRECT on ROW_FORMAT=COMPRESSED tables
      that use KEY_BLOCK_SIZE=1 or 2 (1024 or 2048 bytes).
      
      fil_node_t::find_metadata(): Require fstat() to be always invoked
      outside Microsoft Windows, so that fil_node_t::block_size can be set.
      
      fil_node_t::read_page0(): Rely on find_metadata() to assign block_size.
      
      Thanks to Vladislav Vaintroub for testing this on Microsoft Windows
      using an old-fashioned rotational hard disk with 4KiB sector size.
      
      Reviewed by: Vladislav Vaintroub
      
      This is a port of commit 00f620b2
      and commit 6505662c from 10.2.
      12672542
    • Marko Mäkelä's avatar
      Merge 10.3 into 10.4 · 39c015b7
      Marko Mäkelä authored
      39c015b7
    • Daniel Black's avatar
      crc32c: Fix AIX compulation - ALIGN defined · 5dbea46c
      Daniel Black authored
      ALIGN was defined already:
      
      mysys/crc32/crc32c.cc:390: warning: "ALIGN" redefined
       #define ALIGN(n, m)     ((n + ((1 << m) - 1)) & ~((1 << m) - 1))
      
      In file included from /root/aix/build/include/my_global.h:543,
                       from /root/aix/build/mysys/crc32/crc32c.cc:22:
      /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/include-fixed/sys/socket.h:788: note: this is the location of the previous definition
       #define ALIGN(p)                (ulong)((caddr_t)(p) + MACHINE_ALIGNMENT - 1 - \
      5dbea46c
    • Etienne Guesnet's avatar
      CRC32 on AIX · 60d1461a
      Etienne Guesnet authored
      60d1461a
  2. 17 Mar, 2021 5 commits
  3. 16 Mar, 2021 2 commits
  4. 15 Mar, 2021 1 commit
    • Vlad Lesin's avatar
      MDEV-24184 InnoDB RENAME TABLE recovery failure if names are reused · 8cbada87
      Vlad Lesin authored
      fil_op_replay_rename(): Remove.
      
      fil_rename_tablespace_check(): Remove a parameter is_discarded=false.
      
      recv_sys_t::parse(): Instead of applying FILE_RENAME operations,
      buffer the operations in renamed_spaces.
      
      recv_sys_t::apply(): In the last_batch, apply renamed_spaces.
      8cbada87
  5. 12 Mar, 2021 2 commits
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-24730 Insert log operation fails after purge resets n_core_fields · eb7c5530
      Thirunarayanan Balathandayuthapani authored
      Online log for insert operation of redundant table fails with
      index->is_instant() assert. Purge can reset the n_core_fields when
      alter is waiting to upgrade MDL for commit phase of DDL. In the
      meantime, any insert DML tries to log the operation fails with
      index is not being instant.
      
      row_log_get_n_core_fields(): Get the n_core_fields of online log
      for the given index.
      
      rec_get_converted_size_comp_prefix_low(): Use n_core_fields of online
      log when InnoDB calculates the size of data tuple during redundant
      row format table rebuild.
      
      rec_convert_dtuple_to_rec_comp(): Use n_core_fields of online log
      when InnoDB does the conversion of data tuple to record during
      redudant row format table rebuild.
      
      - Adding the test case which has more than 129 instant columns.
      eb7c5530
    • Vladislav Vaintroub's avatar
      MDEV-25123 support MSVC ASAN · 031b3dfc
      Vladislav Vaintroub authored
      031b3dfc
  6. 11 Mar, 2021 12 commits
  7. 10 Mar, 2021 5 commits
  8. 09 Mar, 2021 4 commits
  9. 08 Mar, 2021 4 commits