1. 26 Sep, 2019 5 commits
  2. 25 Sep, 2019 1 commit
    • Marko Mäkelä's avatar
      Speed up main.sum_distinct-big · 516f7c11
      Marko Mäkelä authored
      Eliminate one InnoDB table with 128*16384 rows, and use
      the sequence engine instead. Also, run everything in a single
      transaction, to prevent purge from running concurrently
      unnecessarily. (Starting with MariaDB Server 10.3, purge would
      reset the DB_TRX_ID after INSERT.)
      516f7c11
  3. 24 Sep, 2019 9 commits
  4. 23 Sep, 2019 6 commits
  5. 22 Sep, 2019 1 commit
    • Michael Widenius's avatar
      Proper fix for disabling warnings in read_statistics_for_table(). · 1bbe8c5e
      Michael Widenius authored
      MDEV-20589: Server still crashes in Field::set_warning_truncated_wrong_value
      
      - Use dbug_tmp_use_all_columns() to mark that all fields can be used
      - Remove field->is_stat_field (not needed)
      - Remove extra arguments to Field::clone() that should not be there
      - Safety fix for Field::set_warning_truncated_wrong_value() to not crash
        if table is zero in production builds (We have got crashes several times
        here so better to be safe than sorry).
      - Threat wrong character string warnings identical to other field
        conversion warnings. This removes some warnings we before got from
        internal conversion errors.  There is no good reason why a user would
        get an error in case of 'key_field='wrong-utf8-string' but not for
        'field=wrong-utf8-string'.  The old code could also easily give
        thousands of no-sence warnings for one single statement.
      1bbe8c5e
  6. 21 Sep, 2019 2 commits
  7. 20 Sep, 2019 11 commits
    • Igor Babaev's avatar
      MDEV-20229 CTE defined with table value constructor cannot be used in views · ba7725da
      Igor Babaev authored
      A CTE can be defined as a table values constructor. In this case the CTE is
      always materialized in a temporary table.
      If the definition of the CTE contains a list of the names of the CTE
      columns then the query expression that uses this CTE can refer to the CTE
      columns by these names. Otherwise the names of the columns are taken from
      the names of the columns in the result set of the query that specifies the
      CTE.
      Thus if the column names of a CTE are provided in the definition the
      columns of result set should be renamed. In a general case renaming of
      the columns is done in the select lists of the query specifying the CTE.
      If a CTE is specified by a table value constructor then there are no such
      select lists and renaming is actually done for the columns of the result
      of materialization.
      Now if a view is specified by a query expression that uses a CTE specified
      by a table value constructor saving the column names of the CTE in the
      stored view definition becomes critical: without these names the query
      expression is not able to refer to the columns of the CTE.
      
      This patch saves the given column names of CTEs in stored view definitions
      that use them.
      ba7725da
    • rantal's avatar
      Update mysqld_safe.sh - introduce defaults-group-suffix handling · fd3ad41e
      rantal authored
      "--defaults-group-suffix" must be be given as the first argument on the command-line of mysqld
      fd3ad41e
    • Vicențiu Ciorbaru's avatar
      MDEV-19211 Fix mysqld_safe --dry-run · 6a7d51b1
      Vicențiu Ciorbaru authored
      mysqld_safe --dry-run needs to either call exit or return, depending if
      it is being sourced or not, otherise return can lead to the error:
      
      return: can only `return' from a function or sourced script
      
      The original fix suggestion was proposed by FaramosCZ <mschorm@centrum.cz>
      6a7d51b1
    • chriscalender's avatar
      MDEV-4968 Old advices in mysql-log-rotate script · 13274032
      chriscalender authored
      * Change the comments in mysql-log-rotate.sh to refer to mysqld, not mysqld_safe
        as that's what most distros are using.
      * Change err-log to log-error as err-log is no longer valid.
      * Convert tab to space for consistency.
      13274032
    • Anel Husakovic's avatar
    • Anel Husakovic's avatar
      MDEV 19205 Sphinx unable to connect using a host name · fd5cd073
      Anel Husakovic authored
      - Enable the test `sphinx.sphinx` which was disabled by MDEV 10986,
        comit ee0094d2
      - Add test case to `sphinx.sphinx` to cover host as localhost instead of `127.0.0.1`
      - Add result file for single test
      fd5cd073
    • Caribe 1999's avatar
      Fix · 9611d7e0
      Caribe 1999 authored
      There's an annoying bug that prevents a Sphinx table to connect to a searchd using a host name.
      So the example table in the documentation https://mariadb.com/kb/en/library/about-sphinxse/#basic-usage that point's to "localhost" actually doesn't work.
      After some investigation I found two errors. The first one is a wrong check after the getaddrinfo call. The second is a wrong usage of the returned struct.
      9611d7e0
    • Daniel Black's avatar
      MDEV-12646: systemd service file changes from Fedora · 75bcf1f9
      Daniel Black authored
      Include comment header that describes overrides.
      
      Unit description now includes @VERSION@.
      
      After=syslog.target removed - redunant
      
      Add --basedir=@prefix to prevent /root/.my.cnf lookups. This is
      placed after $MYSQLD_OPTIONS in case a user sets a --{no,}default
      type options which has to be first in the mysqld arguements.
      
      Additional changes to multi instance (support-files/mariadb@.service.in):
      * added @SYSTEMD_EXECSTARTPRE@ / @SYSTEMD_EXECSTARTPOST@
      * removed mariadb@bootstrap reference as galera_new_cluster as
        it's a little too proment.
      * use_galera_new_cluster.conf updated to override pre/post steps
        to ensure it has no side effects
      Signed-off-by: default avatarDaniel Black <daniel@linux.vnet.ibm.com>
      75bcf1f9
    • Marko Mäkelä's avatar
    • Ian Gilfillan's avatar
      38fa0141
    • Ryan Coe's avatar
      MDEV-20596 Configure fails with newer CMake · f541d3f1
      Ryan Coe authored
      Fix build error with newer cmake
      
      Fixes the following build error:
      
      CMake Error at cmake/os/Linux.cmake:29 (STRING):
      STRING sub-command REPLACE requires at least four arguments.
      Call Stack (most recent call first):
      CMakeLists.txt:101 (INCLUDE)
      
      CMake Error at cmake/os/Linux.cmake:29 (STRING):
      STRING sub-command REPLACE requires at least four arguments.
      Call Stack (most recent call first):
      CMakeLists.txt:101 (INCLUDE)
      
      The error happens when CMAKE_SHARED_LINKER_{LANG}_FLAGS is not set.
      Force the variable to be set to "" as input to prevent this.
      Signed-off-by: default avatarRyan Coe <bluemrp9@gmail.com>
      Signed-off-by: default avatarVicențiu Ciorbaru <vicentiu@mariadb.org>
      f541d3f1
  8. 19 Sep, 2019 1 commit
  9. 18 Sep, 2019 4 commits