1. 11 Jun, 2019 6 commits
    • Georg Richter's avatar
      MDEV-14101 Provide an option to select TLS protocol version · f3a28eed
      Georg Richter authored
      Server and command line tools now support option --tls_version to specify the
      TLS version between client and server. Valid values are TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3
      or a combination of them. E.g.
      
      --tls_version=TLSv1.3
      --tls_version=TLSv1.2,TLSv1.3
      
      In case there is a gap between versions, the lowest version will be used:
      --tls_version=TLSv1.1,TLSv1.3 -> Only TLSv1.1 will be available.
      
      If the used TLS library doesn't support the specified TLS version, it will use
      the default configuration.
      
      Limitations:
      
      SSLv3 is not supported. The default configuration doesn't support TLSv1.0 anymore.
      TLSv1.3 protocol currently is only supported by OpenSSL 1.1.0 (client and server) and
      GnuTLS 3.6.5 (client only).
      
      Overview of TLS implementations and protocols
      
      Server:
      
      +-----------+-----------------------------------------+
      | Library   | Supported TLS versions                  |
      +-----------+-----------------------------------------+
      | WolfSSL   | TLSv1.1, TLSv1,2                        |
      +-----------+-----------------------------------------+
      | OpenSSL   | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3    |
      +-----------+-----------------------------------------+
      | LibreSSL  | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3    |
      +-----------+-----------------------------------------+
      
      Client (MariaDB Connector/C)
      +-----------+-----------------------------------------+
      | Library   | Supported TLS versions                  |
      +-----------+-----------------------------------------+
      | GnuTLS    | (TLSv1.0), TLSv1.1, TLSv1.2, TLSv1.3    |
      +-----------+-----------------------------------------+
      | Schannel  | (TLSv1.0), TLSv1.1, TLSv1.2             |
      +-----------+-----------------------------------------+
      | OpenSSL   | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3    |
      +-----------+-----------------------------------------+
      | LibreSSL  | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3    |
      +-----------+-----------------------------------------+
      f3a28eed
    • Sergei Golubchik's avatar
      MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all... · 27fcdb16
      Sergei Golubchik authored
      MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default (#1328)
      
      followup for be5c432a
      
      ha_partition::calculate_checksum() has to invoke calculate_checksum()
      for partitions unconditionally, not under (HA_HAS_OLD_CHECKSUM | HA_HAS_NEW_CHECKSUM).
      Because the server uses ::info() to ask for a live checksum, while
      calculate_checksum() must, precisely, calculate it the slow way,
      also for tables that don't have the live checksum at all.
      
      Also, fix the compilation on Windows (ha_checksum/ulonglong type mix).
      27fcdb16
    • Marko Mäkelä's avatar
      MDEV-19709: Unbreak the build for clang · bb70d419
      Marko Mäkelä authored
      bb70d419
    • Varun's avatar
      enabled test archive_gis · 1b86ef9f
      Varun authored
      1b86ef9f
    • Varun's avatar
      MDEV-18880: Optimizer trace prints date in hexadecimal · a0cb7551
      Varun authored
      Introduced a print_key_value function to makes sure that the trace prints data in readable format
      for readable characters and the rest of the characters are printed as hexadecimal.
      a0cb7551
    • Vladislav Vaintroub's avatar
      MDEV-19709 Bitmap<128>::merge etc may crash on older GCC versions · 40ff8019
      Vladislav Vaintroub authored
      Older GCC generates SSE instruction on not-128-bit-aligned data in
      Bitmap<128>::buffer
      
      Workaround by forcing GCC not to use SSE on Bitmap<N> template.
      40ff8019
  2. 10 Jun, 2019 2 commits
  3. 07 Jun, 2019 3 commits
  4. 06 Jun, 2019 1 commit
  5. 05 Jun, 2019 1 commit
  6. 04 Jun, 2019 1 commit
  7. 02 Jun, 2019 1 commit
  8. 30 May, 2019 1 commit
  9. 29 May, 2019 8 commits
  10. 28 May, 2019 16 commits
    • Vladislav Vaintroub's avatar
      MDEV-19617 Assertion `src' failed in MyCTX::update · 1df42a2c
      Vladislav Vaintroub authored
      Apprently, sometimes there will be null pointers with 0 length
      passed to the MyCTX::update() function, and  will need to return
      a valid buffer.
      
      So weaken the assertion, and use a valid pointer for src if it was NULL.
      1df42a2c
    • Marko Mäkelä's avatar
      MDEV-19587 innodb_force_recovery=5 crash on DROP SCHEMA · 1ca75ae1
      Marko Mäkelä authored
      At higher levels of innodb_force_recovery, the InnoDB transaction
      subsystem will not be set up at all.
      
      At slightly lower levels, recovered transactions will not be rolled back,
      and DDL operations could hang due to locks being held at all.
      
      Let us consistently refuse all writes if the predicate
      high_level_read_only holds. We failed to refuse DROP TABLE
      and DROP DATABASE. (Refusing DROP TABLE is a partial backport
      from MDEV-19570 in the 10.5 branch.)
      1ca75ae1
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-19602 Replace mysql_version check with frm_version for virtual columns inside InnoDB · 96d9f033
      Thirunarayanan Balathandayuthapani authored
      - Replace mysql_version check with omit_virtual_cols() in
      ha_innobase::check_if_supported_inplace_alter().
      96d9f033
    • Marko Mäkelä's avatar
      Merge 10.1 into 10.2 · d59e15bd
      Marko Mäkelä authored
      d59e15bd
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-19509 InnoDB skips the tablespace in rotation list · 88157247
      Thirunarayanan Balathandayuthapani authored
      - If one of the encryption threads already started the initialization
      of the tablespace then don't remove the other uninitialized tablespace
      from the rotation list.
      
      - If there is a change in innodb_encrypt_tables then
      don't remove the processed tablespace from rotation list.
      88157247
    • Marko Mäkelä's avatar
      MDEV-19614: Fix innodb_plugin on Windows · 8358c6f0
      Marko Mäkelä authored
      LOCK_global_system_variables: Declare with MYSQL_PLUGIN_IMPORT
      8358c6f0
    • Varun Gupta's avatar
      MDEV-18741: Optimizer trace: multi-part key ranges are printed incorrectly · 5e36f5dd
      Varun Gupta authored
      Changed the function append_range_all_keyparts to use sel_arg_range_seq_init / sel_arg_range_seq_next to produce ranges.
      Also adjusted to print format for the ranges, now the ranges are printed as:
          (keypart1_min, keypart2_min,..)  OP (keypart1_name,keypart2_name, ..) OP (keypart1_max,keypart2_max, ..)
      
      Also added more tests for range and index merge access for optimizer trace
      5e36f5dd
    • Eugene Kosov's avatar
      Simplified away READ_RECORD::struct_length · fcb68ffe
      Eugene Kosov authored
      fcb68ffe
    • Eugene Kosov's avatar
      Simplified away READ_RECORD::cache_records · 5d46eeef
      Eugene Kosov authored
      5d46eeef
    • Eugene Kosov's avatar
      Cleanup unused READ_RECORD::index · 3950a98a
      Eugene Kosov authored
      3950a98a
    • Eugene Kosov's avatar
      Cleanup unused READ_RECORD::forms · c8d9ec2c
      Eugene Kosov authored
      c8d9ec2c
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-19541 InnoDB crashes when trying to recover a corrupted page · 79b46ab2
      Thirunarayanan Balathandayuthapani authored
      - Don't apply redo log for the corrupted page when innodb_force_recovery > 0.
      - Allow the table to be dropped when index root page is
      corrupted when innodb_force_recovery > 0.
      79b46ab2
    • Marko Mäkelä's avatar
      Merge 5.5 into 10.1 · bf8fe324
      Marko Mäkelä authored
      bf8fe324
    • Marko Mäkelä's avatar
      MDEV-19614 SET GLOBAL innodb_ deadlock due to LOCK_global_system_variables · 626f2a1c
      Marko Mäkelä authored
      The update callback functions for several settable global InnoDB variables
      are acquiring InnoDB latches while holding LOCK_global_system_variables.
      
      On the other hand, some InnoDB code is invoking THDVAR() while holding
      InnoDB latches. An example of this is thd_lock_wait_timeout() that is
      called by lock_rec_enqueue_waiting(). In some cases, the
      intern_sys_var_ptr() that is invoked by THDVAR() may acquire
      LOCK_global_system_variables, via sync_dynamic_session_variables().
      
      In lock_rec_enqueue_waiting(), we really must be holding some InnoDB
      latch while invoking THDVAR(). This implies that
      LOCK_global_system_variables must conceptually reside below any InnoDB
      latch in the latching order. That in turns implies that the various
      update callback functions must release LOCK_global_system_variables
      before acquiring any InnoDB mutexes or rw-locks, and reacquire
      LOCK_global_system_variables later. The validate functions are being
      invoked while not holding LOCK_global_system_variables and thus they
      do not need any changes.
      
      The following statements are affected by this:
      
      SET GLOBAL innodb_adaptive_hash_index = …;
      SET GLOBAL innodb_cmp_per_index_enabled = 1;
      SET GLOBAL innodb_old_blocks_pct = …;
      SET GLOBAL innodb_fil_make_page_dirty_debug = …; -- debug builds only
      SET GLOBAL innodb_buffer_pool_evict = uncompressed; -- debug builds only
      SET GLOBAL innodb_purge_run_now = 1; -- debug builds only
      SET GLOBAL innodb_purge_stop_now = 1; -- debug builds only
      SET GLOBAL innodb_log_checkpoint_now = 1; -- debug builds only
      SET GLOBAL innodb_buf_flush_list_now = 1; -- debug builds only
      SET GLOBAL innodb_buffer_pool_dump_now = 1;
      SET GLOBAL innodb_buffer_pool_load_now = 1;
      SET GLOBAL innodb_buffer_pool_load_abort = 1;
      SET GLOBAL innodb_status_output = …;
      SET GLOBAL innodb_status_output_locks = …;
      SET GLOBAL innodb_encryption_threads = …;
      SET GLOBAL innodb_encryption_rotate_key_age = …;
      SET GLOBAL innodb_encryption_rotation_iops = …;
      SET GLOBAL innodb_encrypt_tables = …;
      SET GLOBAL innodb_disallow_writes = …;
      
      buf_LRU_old_ratio_update(): Correct the return type.
      626f2a1c
    • Marko Mäkelä's avatar
      MDEV-6812: Remove the wrapper my_log2f() · 242a28c3
      Marko Mäkelä authored
      242a28c3
    • Marko Mäkelä's avatar
      Mention the sample IPv4 address 10.0.0.1 · 661289f4
      Marko Mäkelä authored
      661289f4