1. 05 Apr, 2020 3 commits
  2. 04 Apr, 2020 16 commits
  3. 03 Apr, 2020 17 commits
    • Aleksey Midenkov's avatar
      MDEV-21941 assertion cleanups · 40f4d8c6
      Aleksey Midenkov authored
      40f4d8c6
    • Aleksey Midenkov's avatar
      MDEV-21941 RENAME doesn't work for system time or period fields · 105b879d
      Aleksey Midenkov authored
      - Ignore system-invisible fields (as well as for setting default value);
      - Handle rename of system time and period fields.
      105b879d
    • Aleksey Midenkov's avatar
    • Aleksey Midenkov's avatar
      MDEV-21889 Typo fix: ER_KEY_DOES_NOT_EXISTS · 6fb3e83d
      Aleksey Midenkov authored
      libmariadb revision updated.
      6fb3e83d
    • Sergey Vojtovich's avatar
      Fix CentOS 6 and quantal build failures · d2c366c6
      Sergey Vojtovich authored
      d2c366c6
    • Marko Mäkelä's avatar
      MDEV-22139 fseg_free_page_low() fails to write FREE_PAGE record, breaking recovery · 1078a630
      Marko Mäkelä authored
      This bug was introduced by MDEV-15528
      commit a35b4ae8.
      
      In the case that I analyzed, we failed to apply
      an EXTENDED,INSERT_REUSE_REDUNDANT redo log record whose
      preceding record points to unallocated area after PAGE_HEAP_TOP.
      
      Had we properly written the FREE_PAGE record for the page,
      recovery would have processed it, because during the checkpoint,
      the log had been completely written past the LSN of the missed write.
      
      fseg_free_page_low(): Always invoke mtr_t::free().
      The other call is in fsp_free_page().
      1078a630
    • Daniel Black's avatar
    • Sergey Vojtovich's avatar
      Yet less TDC hash lookups · 4197014b
      Sergey Vojtovich authored
      Let auto repair table and truncate table routines flush TABLE_SHARE
      directly.
      
      Part of MDEV-17882 - Cleanup refresh version
      4197014b
    • Sergey Vojtovich's avatar
      Split tdc_remove_table() · 7a947614
      Sergey Vojtovich authored
      TDC_RT_REMOVE_ALL -> tdc_remove_table(). Some occurrences replaced with
      TDC_element::flush() (whenver TABLE_SHARE is available).
      
      TDC_RT_REMOVE_NOT_OWN[_KEEP_SHARE] -> TDC_element::flush(). These modes
      assume that current thread owns TABLE_SHARE reference, which means we can
      avoid hash lookup and flush unused TABLE instances directly.
      
      TDC_RT_REMOVE_UNUSED -> TDC_element::flush_unused(). Only [ab]used by
      mysql_admin_table() currently. Should be removed eventually.
      
      Part of MDEV-17882 - Cleanup refresh version
      7a947614
    • Sergey Vojtovich's avatar
      tc_remove_all_unused_tables() cleanup · 06fae758
      Sergey Vojtovich authored
      As tc_purge() never marks share flushed, let tdc_remove_table() do it
      directly.
      
      Part of MDEV-17882 - Cleanup refresh version
      06fae758
    • Sergey Vojtovich's avatar
      Proper locking for mysql.gtid_slave_pos truncation · 14e13856
      Sergey Vojtovich authored
      Aim of this patch is to remove tdc_remove_table(TDC_RT_REMOVE_UNUSED),
      which was mistakenly introduced by 055a3334.
      
      InnoDB allows only one open TABLE instance while performing table
      truncation. To fulfill this requirement:
      1. MDL_EXCLUSIVE has to be acquired to block concurrent threads from
         accessing given table
      2. cached TABLE instances have to be flushed
      3. another InnoDB requirement is such that TABLE_SHARE and remaining
         TABLE instance have to be invalidated and re-opened after truncation
      
      This goes more or less inline with what regular TRUNCATE TABLE does.
      
      Alternative solution would be handler::ha_delete_all_rows(), but InnoDB
      doesn't implement it unfortunately.
      
      Part of MDEV-17882 - Cleanup refresh version
      14e13856
    • Sergey Vojtovich's avatar
      Fixed close_cached_connection_tables() flushing · bfdd30d3
      Sergey Vojtovich authored
      Let DROP SERVER and ALTER SERVER perform fair affected tables flushing.
      That is acquire MDL_EXCLUSIVE and do tdc_remove_table(TDC_RT_REMOVE_ALL).
      
      Aim of this patch is elimination of another inconsistent use of
      TDC_RT_REMOVE_UNUSED. It fixes (to some extent) a problem described in the
      beginning of sql_server.cc, when close_cached_connection_tables()
      interferes with concurrent transaction.
      
      A better fix should probably introduce proper MDL locks for server
      objects?
      
      Part of MDEV-17882 - Cleanup refresh version
      bfdd30d3
    • Sergey Vojtovich's avatar
      Cleanup mysql_inplace_alter_table() · 54c03cb4
      Sergey Vojtovich authored
      Removed redundant tdc_remove_table(TDC_RT_REMOVE_ALL). Share was marked
      flushed by preceding wait_while_table_is_used() and eventually flushed by
      close_all_tables_for_name().
      
      Part of MDEV-17882 - Cleanup refresh version
      54c03cb4
    • Sergey Vojtovich's avatar
      Cleanup close_all_tables_for_name() · 02619ed7
      Sergey Vojtovich authored
      close_all_tables_for_name() is always preceded by
      wait_while_table_is_used(), which makes tdc_remove_table() redundant.
      The only (now fixed) exception was close_cached_tables().
      
      Part of MDEV-17882 - Cleanup refresh version
      02619ed7
    • Sergey Vojtovich's avatar
      Let "FTWRL <table_list>" use extra(HA_EXTRA_FLUSH) · e0743bd1
      Sergey Vojtovich authored
      Rather than flushing caches with tdc_remove_table(TDC_RT_REMOVE_UNUSED)
      flush them with extra(HA_EXTRA_FLUSH) instead. This goes inline with
      regular FTWRL.
      
      Part of MDEV-17882 - Cleanup refresh version
      e0743bd1
    • Marko Mäkelä's avatar
      MDEV-22126 Rename confusing constant mtr_t::OPT · 0870b75a
      Marko Mäkelä authored
      The template parameter mtr_t::OPT refers to optional, not optimized.
      Also the default parameter mtr_t::NORMAL refers to optimized writes.
      The name MAYBE_NOP would be more descriptive, conveying the idea
      that a write to a durable page might not actually have any effect.
      0870b75a
    • Marko Mäkelä's avatar
      MDEV-22108 Recovery fails with InnoDB: Malformed log record · 406ca20b
      Marko Mäkelä authored
      mtr_t::log_write(): Fix an off-by-one error.
      406ca20b
  4. 02 Apr, 2020 4 commits