1. 06 Mar, 2019 5 commits
    • Igor Babaev's avatar
      MDEV-18816 Assertion `sel->quick' failed in JOIN::make_range_rowid_filters · 7b9981fb
      Igor Babaev authored
      Do not build range filters with detected impossible WHERE.
      Anyway conditions cannot be used anymore to extract ranges for filters.
      7b9981fb
    • Oleksandr Byelkin's avatar
      MDEV-18339: ASAN heap-buffer-overflow in Item_exists_subselect::is_top_level_item · a36ac52f
      Oleksandr Byelkin authored
      Right argument of Item_in_optimizer can not be cast to Item_in_subselect in invisible mode.
      a36ac52f
    • Sergey Vojtovich's avatar
      Adieu slave_list · 2b711d23
      Sergey Vojtovich authored
      slave_list was used to provide data for SHOW SLAVE HOSTS and
      Slaves_connected status variable.
      
      Introduced binlog_dump_thread_count which is exposed via Slaves_connected
      (replaces slave_list.records).
      
      Store Slave_info on THD and access it by iterating server_threads
      (replaces slave_list).
      
      Added:
      THD::slave_info
      binlog_dump_thread_count
      show_slave_hosts_callback()
      
      Removed:
      slave_list
      SLAVE_LIST_CHUNK
      SLAVE_ERRMSG_SIZE
      slave_list_key()
      slave_info_free()
      init_slave_list()
      end_slave_list()
      all_slave_list_mutexes
      init_all_slave_list_mutexes()
      key_LOCK_slave_list
      LOCK_slave_list
      
      Moved:
      SLAVE_INFO -> Slave_info
      register_slave() -> THD::register_slave()
      unregister_slave() -> THD::unregister_slave()
      
      Also removed redundant end_slave() from close_connections(): it is called
      again soon afterwards by clean_up().
      
      Pre-requisite for clean MDEV-18450 solution.
      2b711d23
    • Sergey Vojtovich's avatar
      Cleanup remnants of rpl_recovery_rank · 68c765d3
      Sergey Vojtovich authored
      68c765d3
    • Marko Mäkelä's avatar
      Merge 10.3 into 10.4 · 2a791c53
      Marko Mäkelä authored
      2a791c53
  2. 05 Mar, 2019 5 commits
  3. 04 Mar, 2019 11 commits
  4. 03 Mar, 2019 1 commit
  5. 01 Mar, 2019 11 commits
  6. 28 Feb, 2019 7 commits
    • Igor Babaev's avatar
      MDEV-18755 Assertion `inited==INDEX' failed in handler::ha_index_read_map · 5a087444
      Igor Babaev authored
      When the chosen execution plan accesses a join table employing a range
      rowid filter a quick select to scan this range has to be built. This
      quick select is built by a call of SQL_SELECT::test_quick_select().
      At this call the function should allow to evaluate only single index
      range scans. In order to be able to do this a new parameter was added
      to this function.
      5a087444
    • Oleksandr Byelkin's avatar
      Increase the version · 2d347132
      Oleksandr Byelkin authored
      2d347132
    • Marko Mäkelä's avatar
      MDEV-18601 Can't create table with ENCRYPTED=DEFAULT when innodb_default_encryption_key_id!=1 · e39d6e0c
      Marko Mäkelä authored
      The problem with the InnoDB table attribute encryption_key_id is that it is
      not being persisted anywhere in InnoDB except if the table attribute
      encryption is specified and is something else than encryption=default.
      MDEV-17320 made it a hard error if encryption_key_id is specified to be
      anything else than 1 in that case.
      
      Ideally, we would always persist encryption_key_id in InnoDB. But, then we
      would have to be prepared for the case that when encryption is being enabled
      for a table whose encryption_key_id attribute refers to a non-existing key.
      
      In MariaDB Server 10.1, our best option remains to not store anything
      inside InnoDB. But, instead of returning the error that MDEV-17320
      introduced, we should merely issue a warning that the specified
      encryption_key_id is going to be ignored if encryption=default.
      
      To improve the situation a little more, we will issue a warning if
      SET [GLOBAL|SESSION] innodb_default_encryption_key_id is being set
      to something that does not refer to an available encryption key.
      
      Starting with MariaDB Server 10.2, thanks to MDEV-5800, we could open the
      table definition from InnoDB side when the encryption is being enabled,
      and actually fix the root cause of what was reported in MDEV-17320.
      e39d6e0c
    • Oleksandr Byelkin's avatar
      Merge branch '5.5' into 10.0 · 7b5c6385
      Oleksandr Byelkin authored
      7b5c6385
    • Oleksandr Byelkin's avatar
      MDEV-17055: Server crashes in find_order_in_list upon 2nd (3rd) execution of SP with UPDATE · cb11b3fb
      Oleksandr Byelkin authored
      1. Always drop merged_for_insert flag on cleanup (there could be errors which prevent TABLE to be assigned)
      2. Make more precise cleanup of select parts which was touched
      cb11b3fb
    • Alexander Barkov's avatar
      A cleanup in derived table handling: removing duplicate code from st_select_lex::handle_derived() · 0ad598a0
      Alexander Barkov authored
      st_select_lex::handle_derived() and mysql_handle_list_of_derived() had
      exactly the same implementations.
      
      - Adding a new method LEX::handle_list_of_derived() instead
      - Removing public function mysql_handle_list_of_derived()
      - Reusing LEX::handle_list_of_derived() in st_select_lex::handle_derived()
      0ad598a0
    • Jan Lindström's avatar
      MDEV-18265: Replace deprecated variable debug to debug_dbug on Galera tests · 622e9e8a
      Jan Lindström authored
      Replaced debug to debug_dbug on 10.1 on galera suite. Nothing to do
      in wsrep and galera_3nodes suites.
      622e9e8a