1. 23 Apr, 2018 2 commits
  2. 21 Apr, 2018 1 commit
  3. 20 Apr, 2018 4 commits
  4. 19 Apr, 2018 6 commits
  5. 17 Apr, 2018 1 commit
  6. 16 Apr, 2018 1 commit
  7. 13 Apr, 2018 1 commit
    • Daniel Black's avatar
      defaults-group-suffix in print_defaults · 88ac368f
      Daniel Black authored
      Also clarify which --{no-,}default* options, must be first.
      
      Sample output:
      $  client/mysql --help
      client/mysql  Ver 15.1 Distrib 5.5.59-MariaDB, for Linux (x86_64) using readline 5.1
      Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
      
      Usage: client/mysql [OPTIONS] [database]
      
      Default options are read from the following files in the given order:
      /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
      The following groups are read: mysql client client-server client-mariadb
      The following options may be given as the first argument:
      --print-defaults          Print the program argument list and exit.
      --no-defaults             Don't read default options from any option file.
      The following specify which files/groups are read (specified before other options):
      --defaults-file=#         Only read default options from the given file #.
      --defaults-extra-file=#   Read this file after the global files are read.
      --defaults-group-suffix=# Additionally read default groups with # appended as a suffix.
      
      tests running from build directory:
      TEST: print defaults ignored as not first
      $ sql/mysqld  --no-defaults --print-defaults --lc-messages-dir=${PWD}/sql/share
      
      TEST: no startup occurs as --print-defaults specified
      $ sql/mysqld  --print-defaults --lc-messages-dir=${PWD}/sql/share
      sql/mysqld would have been started with the following arguments:
      --lc-messages-dir=/home/dan/repos/build-mariadb-5.5/sql/share
      
      TEST: default args can't be anywhere
      $ client/mysql --user=bob  --defaults-file=/etc/my.cnf
      client/mysql: unknown variable 'defaults-file=/etc/my.cnf'
      $ client/mysql --user=bob  --defaults-group-suffix=.group
      client/mysql: unknown variable 'defaults-group-suffix=.group'
      
      /etc/my.cnf:
      [client-server.group]
      socket=/var/lib/mysql-multi/group/mysqld.sock
      user=bob
      
      /etc/my.other.cnf:
      socket=/var/lib/mysql-other/mysqld.sock
      
      TEST: defaults file read and suffix also applied
      $  client/mysql  --defaults-file=/etc/my.other.cnf  --defaults-group-suffix=.group
      ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql-other/mysqld.sock' (2)
      
      TEST: defaults extra file
      $ client/mysql  --defaults-extra-file=/etc/my.other.cnf  --defaults-group-suffix=.group
      ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql-other/mysqld.sock' (2)
      88ac368f
  8. 11 Apr, 2018 1 commit
  9. 08 Apr, 2018 1 commit
  10. 07 Apr, 2018 1 commit
  11. 06 Apr, 2018 1 commit
    • Sergey Vojtovich's avatar
      MDEV-15291 - OQGraph fails to build on FreeBSD · 400a8eb6
      Sergey Vojtovich authored
      Boost includes sys/param.h on FreeBSD, which in turn defines setbit()
      macro. This macro is conflicting with open_query::judy_bitset::setbit().
      
      Reordered includes such that oqgraph_judy.h never sees this macro.
      Also removed duplicate includes of graphcore-config.h, which is included
      by graphcore-graph.h/oqgraph_shim.h/oqgraph_thunk.h.
      400a8eb6
  12. 05 Apr, 2018 1 commit
  13. 04 Apr, 2018 1 commit
  14. 03 Apr, 2018 5 commits
  15. 02 Apr, 2018 1 commit
    • Varun Gupta's avatar
      MDEV-9744: session optimizer_use_condition_selectivity=5 causing SQL Error (1918): · 10f6b700
      Varun Gupta authored
                 Encountered illegal value '' when converting to DECIMAL
      
      The issue was that EITS data was allocated but then not read for some reason (one being to avoid a deadlock),
      then the optimizer was using these bzero'ed buffers as EITS statistics.
      This should not be allowed, we should use statistcs for a table only when we have successfully loaded/read
      the stats from the statistical tables.
      10f6b700
  16. 27 Mar, 2018 2 commits
  17. 26 Mar, 2018 1 commit
  18. 23 Mar, 2018 1 commit
  19. 21 Mar, 2018 3 commits
  20. 20 Mar, 2018 3 commits
  21. 19 Mar, 2018 1 commit
    • Eugene Kosov's avatar
      MDEV-15030 Add ASAN instrumentation · 75c76dbb
      Eugene Kosov authored
      Learn both valgrind and asan to catch this bug:
      
        mem_heap_t* heap = mem_heap_create(1024);
        byte* p = reinterpret_cast<byte*>(heap) + sizeof(mem_heap_t);
        *p = 123;
      
      Overflows of the last allocation in a block will be catched too.
      
      mem_heap_create_block(): poison newly allocated memory
      75c76dbb
  22. 17 Mar, 2018 1 commit
    • Varun Gupta's avatar
      MDEV-6736: Valgrind warnings 'Invalid read' in... · e3dd9a95
      Varun Gupta authored
      MDEV-6736: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SQ in WHERE and
                 HAVING, ORDER BY, materialization+semijoin
      
      During cleanup a pointer to the materialised table that was freed was not set to NULL
      e3dd9a95