1. 13 Aug, 2020 5 commits
  2. 12 Aug, 2020 5 commits
    • Marko Mäkelä's avatar
      MDEV-20672 Inconsistent usage message for innodb_compression_algorithm · 101ce10d
      Marko Mäkelä authored
      The usage message for the innodb_compression_algorithm system variable
      did not list snappy, which was added as an optional compression algorithm
      in MariaDB 10.1.3 and might actually work since
      commit 90c52e52 (MDEV-12615)
      in MariaDB 10.1.24.
      
      Unfortunately, we will include also unavailable compression algorithms
      in the list, because ENUM parameters allow numeric values, and we do
      not want innodb_compression_algorithm=3 to change meaning depending on
      the way how the source code was compiled.
      101ce10d
    • Marko Mäkelä's avatar
      MDEV-19526 heap number overflow on innodb_page_size=64k · efd8af53
      Marko Mäkelä authored
      InnoDB only reserves 13 bits for the heap number in the record header,
      limiting the heap number to be at most 8191. But, when using
      innodb_page_size=64k and secondary index records of 7 bytes each,
      it is possible to exceed the maximum heap number.
      
      btr_cur_optimistic_insert(): Let the operation fail if the
      maximum number of records would be exceeded.
      
      page_mem_alloc_heap(): Move to the same compilation unit with the
      only caller, and let the operation fail if the maximum heap number
      has been allocated already.
      efd8af53
    • Marko Mäkelä's avatar
      MDEV-23439 Assertion size == space->size failed in buf_read_ahead_random · 18f374cb
      Marko Mäkelä authored
      The debug assertion is bogus, and we had removed it in
      commit b1ab211d (MDEV-15053)
      in the MariaDB Server 10.5 branch.
      
      For a small data file, fil_space_extend_must_retry() would always
      allocate a minimum size of 4*innodb_page_size.
      
      It is possible that random read-ahead will be triggered for
      a smaller file than this. In the observed case, the read-ahead
      was triggered for a 6-page file that used ROW_FORMAT=COMPRESSED
      with 8KiB page size. So, the desired file size was 49152 bytes,
      but the actual size was 65536 bytes.
      18f374cb
    • Marko Mäkelä's avatar
      Use DBUG_ASSERT(ptr != NULL) to ease merging to 10.3 · 4387e3a1
      Marko Mäkelä authored
      In 10.3, DBUG_ASSERT() may expand to something that includes
      __builtin_expect(), which expects integer arguments, not pointers.
      To avoid any compiler warnings, let us use an explicit rather than
      implicit comparison to the null pointer.
      4387e3a1
    • Eugene Kosov's avatar
      replace assert() with DBUG_ASSERT() · 5a4ae142
      Eugene Kosov authored
      5a4ae142
  3. 11 Aug, 2020 9 commits
    • Eugene Kosov's avatar
      add debug assertion to ilist · 01738d08
      Eugene Kosov authored
      01738d08
    • Marko Mäkelä's avatar
      MDEV-14119 Assertion cmp_rec_rec() in ALTER TABLE · c96be848
      Marko Mäkelä authored
      innobase_pk_order_preserved(): Treat an added AUTO_INCREMENT
      column in the same way as an added existing column.
      In either case, the column values are not guaranteed to
      be constant, and thus the ordering may change if such a column
      is added before any existing PRIMARY KEY columns.
      
      prepare_inplace_alter_table_dict(): Initialize
      dict_table_t::persistent_autoinc before invoking
      innobase_pk_order_preserved().
      c96be848
    • Anel Husakovic's avatar
      MDEV-22066: out-of-source build fails with WITHOUT_SERVER=ON · 863e28ff
      Anel Husakovic authored
      Patch 4aaa38d2 is replacing `my_config.h` with
      `my_global.h` which is included in in-source build, but not for
      out-of-source build tree.
      
      Closes #1466
      863e28ff
    • Marko Mäkelä's avatar
      MDEV-23447 SIGSEGV in fil_system_t::keyrotate_next() · de8d57e5
      Marko Mäkelä authored
      fil_system_t::keyrotate_next(): If space && space->is_in_rotation_list
      does not hold, iterate from the start of the list.
      
      In debug builds, we would typically have hit SIGSEGV because the
      iterator would have wrapped a null pointer. It might also be that
      we are dereferencing a stale pointer.
      
      There is no test case, because the encryption is very nondeterministic
      in nature, due to the use of background threads.
      
      This scenario can be hit by setting the following:
      
      SET GLOBAL innodb_encryption_threads=5;
      SET GLOBAL innodb_encryption_rotate_key_age=0;
      de8d57e5
    • Marko Mäkelä's avatar
      Fix GCC 10.2.0 -Og -Wmaybe-uninitialized · 31aef3ae
      Marko Mäkelä authored
      For some reason, GCC emits more -Wmaybe-uninitialized warnings
      when using the flag -Og than when using -O2. Many of the warnings
      look genuine.
      31aef3ae
    • Julius Goryavsky's avatar
      MDEV-21526: mysqld_multi no longer works with different server binaries · 7ad4709a
      Julius Goryavsky authored
      The problem is caused by the fact that adding the
      --defaults-group-suffix option to fix MDEV-18863 causes
      mysqld to read all options from the appropriate sections
      of the config file, including options specific to mysqld_multi.
      Reading unknown options (which are not supported by mysqld)
      causes mysqld to terminate with an error.
      
      However, the MDEV-18863 problem has been completely fixed
      by passing options on the command line, and now there is no
      need to specify the --defaults-group-suffix option (we just
      need to give priority to options passed through the command
      line, so as not to break MDEV-18863).
      7ad4709a
    • Jan Lindström's avatar
      MDEV-22543 : Galera SST donation fails, FLUSH TABLES WITH READ LOCK times out · 57d1a5fa
      Jan Lindström authored
      During SST we need to let FTWRL to use normal timeout method
      even when client is disconnected.
      57d1a5fa
    • Alexander Barkov's avatar
      Fixing sporading builtbot test failures happening at '00:00:00' sharp · caf10590
      Alexander Barkov authored
      Some tests relied on the fact that DATETIME->DATE conversion
      always produce a truncation (with a warning). This is not the case
      when the SQL statement is executed at current time '00:00:00' sharp.
      
      Adding a new SET TIMESTAMP statements to make sure time is not '00:00:00'.
      caf10590
    • Marko Mäkelä's avatar
      e0c06f53
  4. 10 Aug, 2020 11 commits
  5. 07 Aug, 2020 2 commits
  6. 06 Aug, 2020 6 commits
  7. 05 Aug, 2020 2 commits
    • Varun Gupta's avatar
      MDEV-17066: Bytes lost or Assertion `status_var.local_memory_used == 0 after... · 1e31d748
      Varun Gupta authored
      MDEV-17066: Bytes lost or Assertion `status_var.local_memory_used == 0 after DELETE with subquery with ROLLUP
      
      The issue here is when records are read from the temporary file
      (filesort result in this case) via a cache(rr_from_cache).
      The cache is initialized with init_rr_cache.
      For correlated subquery the cache allocation is happening at each execution
      of the subquery but the deallocation happens only once and that was
      when the query execution was done.
      
      So generally for subqueries we do two types of cleanup
      
      1) Full cleanup: we should free all resources of the query(like temp tables).
         This is done generally when the query execution is complete or the subquery
         re-execution is not needed (case with uncorrelated subquery)
      
      2) Partial cleanup: Minor cleanup that is required if
         the subquery needs recalculation. This is done for all the structures that
         need to be allocated for each execution (example SORT_INFO for filesort
         is allocated for each execution of the correlated subquery).
      
      The fix here would be free the cache used by rr_from_cache in the partial
      cleanup phase.
      1e31d748
    • Alexander Barkov's avatar
      MDEV-23105 Cast number string with many leading zeros to decimal gives unexpected result · 0e80f5a6
      Alexander Barkov authored
      Skip leading zeros when converting a string to decimal_t.
      0e80f5a6