1. 16 Mar, 2020 3 commits
  2. 14 Mar, 2020 1 commit
  3. 13 Mar, 2020 10 commits
    • Marko Mäkelä's avatar
      Merge 10.2 into 10.3 · 5fe87ac4
      Marko Mäkelä authored
      5fe87ac4
    • Marko Mäkelä's avatar
      Fix GCC 10.0 -Wstringop-overflow · ed21202a
      Marko Mäkelä authored
      myrg_open(): Reduce the scope of the variable 'end' and
      simplify the code.
      
      For some reason, I got no warning for this code in the 10.2
      branch, only 10.3 or later.
      
      The ENGINE=MERGE is covered by the tests main.merge, main.merge_debug,
      and main.merge-big.
      ed21202a
    • Sujatha's avatar
      MDEV-10047: table-based master info repository · d9d3c222
      Sujatha authored
      Problem:
      =======
      When we upgrade from "mysql" to "mariadb" if slave is using repositories as
      tables their data is completely ignored and no warning is issued in error log.
      
      Fix:
      ===
      "mysql_upgrade" test should check for the presence of data in
      "mysql.slave_master_info" and "mysql.slave_relay_log_info" tables. When tables
      have some data the upgrade script should report a warning which hints users
      that the data in repository tables will be ignored.
      d9d3c222
    • Marko Mäkelä's avatar
      Fix clang 10 warnings · 9f858f38
      Marko Mäkelä authored
      _ma_fetch_keypage(): Correct an assertion that used to always hold.
      Thanks to clang -Wint-in-bool-context for flagging this.
      
      double_to_datetime_with_warn(): Suppress -Wimplicit-int-float-conversion
      by adding a cast. LONGLONG_MAX converted to double will actually be
      LONGLONG_MAX+1.
      9f858f38
    • Marko Mäkelä's avatar
      MDEV-21933 INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES accesses SYS_DATAFILES · 2e8b0c56
      Marko Mäkelä authored
      All tablespace metadata is buffered in fil_system. There is a LRU
      mechanism, but that only controls the opening and closing of
      fil_node_t::handle.
      
      It is much more efficient and less error-prone to access data file names
      by looking up the fil_space_t object rather than by essentially joining
      each row with an access to SYS_DATAFILES via the InnoDB internal SQL parser.
      
      dict_get_first_path(): Declare static. The function may only be needed
      when loading or updating the data dictionary. Also, change a condition
      in order to avoid a bogus GCC 10 -Wstringop-overflow warning for
      mem_strdupl() about len==ULINT_UNDEFINED.
      
      i_s_sys_tablespaces_fill_table(): Do not access other InnoDB internal
      dictionary tables than SYS_TABLESPACES.
      2e8b0c56
    • Marko Mäkelä's avatar
      Fix GCC 10 -Wclass-memaccess · 47382a2f
      Marko Mäkelä authored
      47382a2f
    • Marko Mäkelä's avatar
      Fix GCC 10 -Wstringop-truncation · a8566f72
      Marko Mäkelä authored
      a8566f72
    • Marko Mäkelä's avatar
      Update libmariadb · 2c8fa28f
      Marko Mäkelä authored
      This fixes GCC 10.0.1 -Wstringop-truncation and some typos.
      2c8fa28f
    • Marko Mäkelä's avatar
      Merge 10.1 into 10.2 · 32904dc5
      Marko Mäkelä authored
      32904dc5
    • Marko Mäkelä's avatar
      Merge 5.5 into 10.1 · 7b082fb0
      Marko Mäkelä authored
      7b082fb0
  4. 12 Mar, 2020 2 commits
  5. 11 Mar, 2020 10 commits
  6. 10 Mar, 2020 5 commits
  7. 09 Mar, 2020 6 commits
    • Monty's avatar
      Fixes for previous not-complete-push · 5c6c4b13
      Monty authored
      5c6c4b13
    • Monty's avatar
      Added keyread_time() to HEAP · c037cdad
      Monty authored
      The default keyread_time() was optimized for blocks and not suitable for
      HEAP. The effect was the HEAP prefered table scans over ranges for btree
      indexes.
      Fixed also get_sweep_read_cost() for HEAP tables.
      c037cdad
    • Monty's avatar
      Second stage of optimizer_trace optimizations · a24d0926
      Monty authored
      - Move testing of my_writer to inline functions to avoid calls
      - Made more functions inline. Especially thd->thread_started()
        is now very optimized!
      - Moved Opt_trace_stmt classe to opt_trace_context.h to get critical
        functions inline
      a24d0926
    • Monty's avatar
      Improved speed of optimizer trace · 940fcbe7
      Monty authored
      - Added unlikely() to optimize for not having optimizer trace enabled
      - Made THD::trace_started() inline
      - Added 'if (trace_enabled())' around some potentially expensive code
        (not many found)
      - Added ASSERT's to ensure we don't call expensive optimizer trace calls
        if optimizer trace is not enabled
      - Added length to Json_writer functions to speed up buffer writes
        when optimizer trace is enabled.
      - Changed LEX_CSTRING argument handling to not send full struct to writer
        function on_add_str() functions now trusts length arguments
      940fcbe7
    • Marko Mäkelä's avatar
      Minor cleanup of main.partition_innodb · 7a52b6fd
      Marko Mäkelä authored
      Stop masking the Data_free values, because innodb_file_per_table=1
      is the default.
      
      Also, do mask Update_time after updating tables, even though for
      some reason it does appear to matter.
      7a52b6fd
    • Jan Lindström's avatar
      MDEV-21758 : Events switched randomly to SLAVESIDE_DISABLED · 2bf4e574
      Jan Lindström authored
      Change events only on Galera environment where idea is that
      event is enabled only on one node of the cluster and nodes
      are identified by server_id.
      2bf4e574
  8. 08 Mar, 2020 3 commits