1. 26 Jul, 2024 12 commits
  2. 24 Jul, 2024 1 commit
    • Souradeep Saha's avatar
      Cleanup Whitespace in unittest/ directory · 4dde925f
      Souradeep Saha authored
      Cleanup unnecessary whitespace at the end of lines and end of files
      in the unittest/ directory. Note that all code changes are
      non-functional.
      
      All new code of the whole pull request, including one or several files
      that are either new files or modified ones, are contributed under the
      BSD-new license. I am contributing on behalf of my employer Amazon Web
      Services, Inc.
      4dde925f
  3. 17 Jul, 2024 1 commit
  4. 16 Jul, 2024 6 commits
    • Daniel Black's avatar
      MDEV-33988 DELETE single table to support table aliases · 75d354a2
      Daniel Black authored
      Gain MySQL compatibility by allowing table aliases in a single
      table statement.
      
      This now supports the syntax of:
      
      DELETE [delete_opts] FROM tbl_name [[AS] tbl_alias] [PARTITION (partition_name [, partition_name] ...)] ....
      
      The delete.test is from MySQL commit 1a72b69778a9791be44525501960b08856833b8d
      / Change-Id: Iac3a2b5ed993f65b7f91acdfd60013c2344db5c0.
      
      Co-Author: Gleb Shchepa <gleb.shchepa@oracle.com> (for delete.test)
      
      Reviewed by Igor Babaev (igor@mariadb.com)
      75d354a2
    • Brandon Nesterenko's avatar
      MDEV-34571: Fix funcs_1.is_columns_is_embedded · 0cd20e3a
      Brandon Nesterenko authored
      Result file needed re-recording to account for the
      new information_schema columns
      0cd20e3a
    • Vladislav Vaintroub's avatar
      MDEV-33627 : Implement option --dir in mariadb-import · 9e25d6f0
      Vladislav Vaintroub authored
      With that, it is possible to restore the full "instance" from a backup
      made with mariadb-dump --dir
      
      The patch implements executing DDL (tables, views, triggers) using
      statements that are stored in .sql file, created by mariadb-dump
      --dir .
      
      Care is taken of creating triggers correctly after the data is loaded,
      disabling foreign keys and unique key checks etc.
      
      The files are loaded in descending order by datafile size -
      to ensure better work distribution when running with --parallel option.
      
      In addition to --dir option, following options are implemented for
      partial restore
      
      include-only options:
      --database             -  import one or several databases
      --table                -  import one or several tables
      
      exclude options:
      --ignore-database      -. ignore one or several databases when importing
      --ignore-table         -  to ignore one or several tables when importing
      
      All options above are only valid together with --dir option,
      and can be specified multiple times.
      9e25d6f0
    • Vladislav Vaintroub's avatar
      MDEV-33627 refactor threading in mariadb-import · 04988d87
      Vladislav Vaintroub authored
      Use threadpool, instead of one-thread-and-connection-per-table
      04988d87
    • Vladislav Vaintroub's avatar
      MDEV-33627 preparation - tpool fix · c483c5ca
      Vladislav Vaintroub authored
      Fix tpool to not use maintenance timer for fixed pool size.
      c483c5ca
    • Vladislav Vaintroub's avatar
  5. 12 Jul, 2024 1 commit
    • Monty's avatar
      MDEV-34571 Add page accessed and pages read from disk to table_stats · ecc79611
      Monty authored
      Trivial batch, using the handler statistics already collected for
      the slow query log.
      
      The reason for the changes in test cases was mainly to change to use
      select TABLE_SCHEMA ... from information_schema.table_statistics instead
      of 'show table_statistics' to avoid future changes to test results
      if we add more columns to table_statistics.
      ecc79611
  6. 11 Jul, 2024 2 commits
  7. 10 Jul, 2024 2 commits
  8. 09 Jul, 2024 7 commits
  9. 08 Jul, 2024 8 commits
    • Oleksandr Byelkin's avatar
      Merge branch '10.11' into 11.1 · 2447dda2
      Oleksandr Byelkin authored
      2447dda2
    • Alexander Barkov's avatar
      4d71a117
    • Alexander Barkov's avatar
      e56040fe
    • Alexander Barkov's avatar
      MDEV-34305 Redundant truncation errors/warnings with optimizer_trace enabled · d1e5fa89
      Alexander Barkov authored
      my_like_range*() can create longer keys than Field::char_length().
      This caused warnings during print_range().
      
      Fix:
      
      Suppressing warnings in print_range().
      d1e5fa89
    • Alexander Barkov's avatar
      027f1377
    • Anson Chung's avatar
      Refactor GitLab cppcheck and update SAST ignorelists · df35072c
      Anson Chung authored
      Line numbers had to be removed from the ignorelists in order to be
      diffed against since locations of the same findings can differ
      across runs. Therefore preprocessing has to be done on the CI findings
      so that it can be compared to the ignorelist and new findings can be
      outputted. However, since line numbers have to be removed, a situation
      occurs where it is difficult to reference the location of findings
      in code given the output of the CI job.
      
      To lessen this pain, change the cppcheck template to include
      code snippets which make it easier to reference where in the code
      the finding is referring to, even in the absence of line numbers.
      Ignorelisting works as before since locations of the finding may
      change but not the code it is referring to.
      
      Furthermore, due to the innate difficulty in maintaining ignorelists
      across branches and triaging new findings, allow failure as to not
      have constantly failing pipelines as a result of a new findings that
      have not been addressed yet.
      
      Lastly, update SAST ignorelists to match the newly refactored cppcheck
      job and the current state of the codebase.
      
      All new code of the whole pull request, including one or several
      files that are either new files or modified ones, are contributed
      under the BSD-new license. I am contributing on behalf of my
      employer Amazon Web Services, Inc.
      df35072c
    • Anson Chung's avatar
      Perform simple fixes for cppcheck findings · 215fab68
      Anson Chung authored
      Rectify cases of mismatched brackets and address
      possible cases of division by zero by checking if
      the denominator is zero before dividing.
      
      No functional changes were made.
      
      All new code of the whole pull request, including one or several
      files that are either new files or modified ones, are contributed
      under the BSD-new license. I am contributing on behalf of my
      employer Amazon Web Services, Inc.
      215fab68
    • Robin Newhouse's avatar
      Delete unused global variables from mysqld.h · becc8372
      Robin Newhouse authored
      Several variables declared in mysqld.h appear to be old system variables
      that have been left over after deprecation. Delete them using IDE
      refactoring to automatically search for other uses. Most cases had no
      other uses in the code.
      
      slave_allow_batching had a test that was effectively unused, as the
      result was only
      -ERROR HY000: Unknown system variable 'slave_allow_batching'
      so that was deleted as well.
      
      Build and test still works without issue as expected.
      
      All new code of the whole pull request, including one or several files
      that are either new files or modified ones, are contributed under the
      BSD-new license. I am contributing on behalf of my employer Amazon Web
      Services.
      becc8372