1. 05 Nov, 2017 3 commits
    • Monty's avatar
      Add more execution stages (commit, rollback, etc) · c9f612db
      Monty authored
      This was done to get more information about where time is spent.
      Now we can get proper timing for time spent in commit, rollback,
      binlog write etc.
      
      Following stages was added:
      - Commit
      - Commit_implicit
      - Rollback
      - Rollback implicit
      - Binlog write
      - Init for update
        - This is used instead of "Init" for insert, update and delete.
      - Staring cleanup
      
      Following stages where changed:
      - "Unlocking tables" stage reset stage to previous stage at end
      - "binlog write" stage resets stage to previous stage at end
      - "end" -> "end of update loop"
      - "cleaning up" -> "Reset for next command"
      - Added stage_searching_rows_for_update when searching for rows
        to be deleted.
      
      Other things:
      - Renamed all stages to start with big letter (before there was no
        consitency)
      - Increased performance_schema_max_stage_classes from 150 to 160.
      - Most of the test changes in performance schema comes from renaming of
        stages.
      - Removed duplicate output of variables and inital state in a lot of
        performance schema tests.
        This was done to make it easier to change a default value for a
        performance variable without affecting all tests.
      - Added start_server_variables.test to check configuration
      - Removed some duplicate "closing tables" stages
      - Updated position for "stage_init_update" and "stage_updating" for
        delete, insert and update to be just before update loop (for more
        exact timing).
      - Don't set "Checking permissions" twice in a row.
      - Remove stage_end stage from creating views (not done for create table
        either).
      - Updated default performance history size from 10 to 20 because of new
        stages
      - Ensure that ps_enabled is correct (to be used in a later patch)
      c9f612db
    • Monty's avatar
      Disable some test that fails constantly · 61706e61
      Monty authored
      61706e61
    • Alexander Barkov's avatar
  2. 04 Nov, 2017 1 commit
  3. 03 Nov, 2017 2 commits
  4. 02 Nov, 2017 8 commits
    • Igor Babaev's avatar
      Fixed mdev-14093 Wrong result upon JOIN with INDEX with no rows · beac522b
      Igor Babaev authored
      in joined table + GROUP BY + GROUP_CONCAT + HAVING + ORDER BY
      [by field from HAVING] + 1 row expected
      
      The fix is actually a port of the fix for bug #17055185 from
      mysql code line (see commit f289aeeef0743508ff87211084453b3b88a6d017
      by Mithun C Y into mysql-5.6). The test case for the bug #17055185
      was also ported.
      beac522b
    • Monty's avatar
      Fixed compiler warning and unitialized memory warning · 3ab112eb
      Monty authored
      - The valgrind warning came from JOIN::optimize() (sql_select.cc:1123)
      3ab112eb
    • Monty's avatar
      Updated valgrind.supp · a17e7d07
      Monty authored
      a17e7d07
    • Monty's avatar
      Reduce memory used by maria_open · c127a1ba
      Monty authored
      - Allocate only enough memory that we need for key status
        - Saves ~100K temp usage on maria_open
      c127a1ba
    • Monty's avatar
      Reducing memory when using information schema · 9ec19b9b
      Monty authored
      The background is that one user had a lot of views and using some complex
      queries on information schema temporary memory of more than 2G was used.
      
      - Added new element 'total_alloc' to MEM_ROOT for easier debugging.
      - Added MAX_MEMORY_USED to information_schema.processlist.
      - Added new status variable "Memory_used_initial" that shows how much MariaDB
        uses at startup. This gives the base value for "Memory_used".
      - Reuse memory continuously for information schema queries instead of
        only freeing memory at query end.
      
      Other things
      - Removed some not needed set_notnull() calls for not null columns.
      9ec19b9b
    • Vladislav Vaintroub's avatar
      Fix a warning. · b0cfb168
      Vladislav Vaintroub authored
      b0cfb168
    • Marko Mäkelä's avatar
      MDEV-14244 MariaDB 10.2.10 fails to run on Debian Stretch with ext3 and O_DIRECT · 19733efa
      Marko Mäkelä authored
      os_file_set_size(): If posix_fallocate() returns EINVAL, fall back
      to writing zero bytes to the file. Also, remove some error log output,
      and make it possible for a server shutdown to interrupt the fall-back
      code.
      
      MariaDB 10.2 used to handle the EINVAL return value from posix_fallocate()
      before commit b731a5bc
      which refactored os_file_set_size() to try posix_fallocate().
      
      Why is the EINVAL returned? The GNU posix_fallocate() function
      would first try the fallocate() system call, which would return
      -EOPNOTSUPP for many file systems (notably, not ext4). Then, it
      would fall back to extending the file one block at a time by invoking
      pwrite(fd, "", 1, offset) where offset is 1 less than a multiple of
      the file block size. This would fail with EINVAL if the file is in
      O_DIRECT mode, because O_DIRECT requires aligned operation.
      19733efa
    • Monty's avatar
      Fixed compiler warning and warning from valgrind · 0f4e0055
      Monty authored
      The failing test was main.gis-json
      0f4e0055
  5. 01 Nov, 2017 3 commits
  6. 31 Oct, 2017 7 commits
  7. 30 Oct, 2017 10 commits
  8. 29 Oct, 2017 6 commits