1. 23 Sep, 2019 5 commits
  2. 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
  3. 21 Sep, 2019 2 commits
  4. 20 Sep, 2019 7 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
    • 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
    • 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
  5. 19 Sep, 2019 1 commit
  6. 18 Sep, 2019 8 commits
  7. 17 Sep, 2019 3 commits
  8. 16 Sep, 2019 1 commit
    • Sujatha's avatar
      MDEV-20217: Semi_sync: Last_IO_Error: Fatal error: Failed to run 'after_queue_event' hook · 90a9c4ca
      Sujatha authored
      Fix:
      ===
      Implemented upstream fix.
      
      commit 7d3d0fc3
      Author: He Zhenxing <zhenxing.he@sun.com>
      
      Backport Bug#45852 Semisynch: Last_IO_Error: Fatal error: Failed
      to run 'after_queue_event' hook
      
      Errors when send reply to master should never cause the IO thread
      to stop, because master can fall back to async replication if it
      does not get reply from slave.
      
      The problem is fixed by deliberately ignoring the return value of
      slave_reply.
      90a9c4ca
  9. 14 Sep, 2019 2 commits
  10. 13 Sep, 2019 8 commits
    • Igor Babaev's avatar
      Post fix after the patch for MDEV-20576. · 0954bcb6
      Igor Babaev authored
      Adjusted test results.
      0954bcb6
    • Marko Mäkelä's avatar
      MDEV-20525: Fix the -std=c90 builds · bfbf0f22
      Marko Mäkelä authored
      bfbf0f22
    • Marko Mäkelä's avatar
      MDEV-13893/MDEV-12699: Enable encryption.innodb-redo-badkey · 23657a21
      Marko Mäkelä authored
      The test had been disabled in 10.2 due to frequent failures,
      in 5ec9b88e.
      After the problems were addressed, we failed to re-enable the test
      until now.
      23657a21
    • Marko Mäkelä's avatar
      MDEV-20525 rocksdb debug compilation fails on Windows due to unresolved my_assert variable · b214264a
      Marko Mäkelä authored
      MYSQL_PLUGIN_IMPORT did not work correctly for the RocksDB helper library
      rocksdb_aux_lib, because that library was not compiled with
      -DMYSQL_DYNAMIC_PLUGIN.
      
      Fix DBUG such that it does not depend on exported data, only on functions
      (which do not need MYSQL_PLUGIN_IMPORT decoration)
      
      Use a "getter" function _db_my_assert() instead of DLL-exported variable.
      
      Also, reduce object code duplication by moving more of the DBUG_ASSERT
      logic inside the _db_my_assert() function, and add unlikely() and
      ATTRIBUTE_COLD hints to ensure that the 'assertion failed' code will
      be separated from the main control flow logic. Thus, the compiler can
      move the unlikely() code to the end of the compiled function, reachable
      via a forward conditional branch, which the processor's branch predictor
      could assume 'not taken'.
      b214264a
    • Anel Husakovic's avatar
      Enable the auto parameter of the flag `default-character-set` · 3793da44
      Anel Husakovic authored
      Closes #739
      
      When invoking option `--default-character-set=auto` character set
      from underlying OS settings should be detected for mysqldump.
      3793da44
    • Jan Lindström's avatar
      Try to fix galera.MW-336 test case. · 3422c13a
      Jan Lindström authored
      3422c13a
    • Teemu Ollakka's avatar
      MDEV-20561 Galera node shutdown fails in non-Primary (#1386) · 40beeb14
      Teemu Ollakka authored
      Command COM_SHUTDOWN was rejected in non-Primary because
      server_command_flags[COM_SHUTDOWN] had value CF_NO_COM_MULTI
      instead of CF_SKIP_WSREP_CHECK.
      
      As a fix removed assignment
      server_command_flags[CF_NO_COM_MULTI]= CF_NO_COM_MULTI
      which overwrote server_command_flags[COM_SHUTDOWN].
      40beeb14
    • Igor Babaev's avatar
      MDEV-20576 A new assertion added to check validity of calculated · deb9121f
      Igor Babaev authored
                 selectivity values fails
      
      After having set the assertion that checks validity of selectivity values
      returned by the function table_cond_selectivity() a test case from
      order_by.tesst failed. The failure occurred because range optimizer could
      return as an estimate of the cardinality of the ranges built for an index
      a number exceeding the total number of records in the table.
      
      The second bug is more subtle. It may happen when there are several
      indexes with same prefix defined on the first joined table t accessed by
      a constant ref access. In this case the range optimizer estimates the
      number of accessed records of t for each usable index and these
      estimates can be different. Only the first of these estimates is taken
      into account when the selectivity of the ref access is calculated.
      However the optimizer later can choose a different index that provides
      a different estimate. The function table_condition_selectivity() could use
      this estimate to discount the selectivity of the ref access. This could
      lead to an selectivity value returned by this function that was greater
      that 1.
      deb9121f
  11. 12 Sep, 2019 2 commits