MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Marko Mäkelä d2e649aec2 MDEV-29440 InnoDB instant ALTER TABLE recovery must use READ UNCOMMITTED
In commit 8f8ba75855 (MDEV-27234)
the data dictionary recovery was changed to use READ COMMITTED
so that table-rebuild operations (OPTIMIZE TABLE, TRUNCATE TABLE,
some forms of ALTER TABLE) would be recovered correctly.

However, for operations that avoid a table rebuild thanks to
being able to instantly ADD, DROP or reorder columns, recovery
must use the READ UNCOMMITTED isolation level so that changes to
the hidden metadata record can be rolled back.

We will detect instant operations by detecting uncommitted changes
to SYS_COLUMNS in case there is no uncommitted change of SYS_TABLES.ID
for the table. In any table-rebuilding DDL operation, the SYS_TABLES.ID
(and likely also the table name) will be updated.

As part of rolling back the instant ALTER TABLE operation, after the
operation on the hidden metadata record has been rolled back, a rollback
of an INSERT into SYS_COLUMNS in row_undo_ins_remove_clust_rec() will
invoke trx_t::evict_table() to discard the READ UNCOMMITTED definition
of the table. After that, subsequent recovery steps will load and use
the correct table definition.

Reviewed by: Thirunarayanan Balathandayuthapani
Tested by: Matthias Leich
2022-09-08 14:57:50 +03:00
.github Add Pull Request template file to the MariaDB/server repository 2021-05-27 16:28:28 +03:00
BUILD Merge branch '10.5' into 10.6 2022-08-10 13:06:08 +02:00
client Merge branch '10.5' into 10.6 2022-08-10 13:06:08 +02:00
cmake Merge 10.5 into 10.6 2022-09-05 10:09:03 +03:00
dbug Merge branch '10.5' into 10.6 2022-08-10 13:06:08 +02:00
debian Merge branch '10.5' into 10.6 2022-09-07 16:39:30 +02:00
Docs Merge branch '10.4' into 10.5 2022-08-10 12:24:31 +02:00
extra Merge 10.5 into 10.6 2022-08-30 13:01:16 +03:00
include Merge 10.5 into 10.6 2022-09-05 14:05:30 +03:00
libmariadb@a6665e65c0 New CC 2022-08-03 19:43:31 +02:00
libmysqld MDEV-28888 : Embedded MariaDB does not build on Windows 2022-07-03 17:11:56 +02:00
libservices Add build on AIX 2020-12-16 08:07:04 +11:00
man Merge branch '10.5' into 10.6 2022-08-04 16:58:42 +02:00
mysql-test MDEV-29440 InnoDB instant ALTER TABLE recovery must use READ UNCOMMITTED 2022-09-08 14:57:50 +03:00
mysys Merge 10.5 into 10.6 2022-09-05 10:09:03 +03:00
mysys_ssl MDEV-27778 md5 in FIPS crashes with OpenSSL 3.0.0 2022-07-04 12:49:11 +02:00
plugin Merge 10.5 into 10.6 2022-09-07 08:47:20 +03:00
randgen/conf
scripts MDEV-29222 - Fix mysqld_safe script 2022-08-10 13:24:31 +02:00
sql Merge branch '10.5' into 10.6 2022-09-07 16:39:30 +02:00
sql-bench MDEV-24854: Change innodb_flush_method=O_DIRECT by default 2021-02-20 11:58:58 +02:00
sql-common Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
storage MDEV-29440 InnoDB instant ALTER TABLE recovery must use READ UNCOMMITTED 2022-09-08 14:57:50 +03:00
strings Ensure that source files contain only valid UTF8 encodings (#2188) 2022-08-30 09:21:40 +01:00
support-files Merge 10.5 into 10.6 2022-07-27 17:52:37 +03:00
tests Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
tpool MDEV-29443: prevent uring access to galera sst /notify scripts 2022-09-06 08:03:49 +10:00
unittest MDEV-25785 Add support for OpenSSL 3.0 2022-07-04 12:49:11 +02:00
vio Merge 10.5 into 10.6 2022-04-12 09:26:02 +03:00
win MDEV-28471 mysql_install_db.exe does not work with --innodb-page-size=64K 2022-05-13 14:17:58 +02:00
wsrep-lib@8bfce04189 Update wsrep-lib 2022-05-03 09:02:13 +03:00
zlib zlib: remove redundant and generated files 2022-07-26 16:46:27 +02:00
.clang-format Merge 10.4 into 10.5 2019-12-27 21:17:16 +02:00
.gitattributes Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
.gitignore Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
.gitlab-ci.yml Fix Ninja builds on Gitlab-CI by limiting parallelism 2022-07-18 23:12:39 -07:00
.gitmodules Add stub for building ColumnStore 2020-06-19 21:04:17 +02:00
appveyor.yml Merge 10.5 into 10.6 2022-07-27 17:52:37 +03:00
BUILD-CMAKE
CMakeLists.txt Fix CMake 3.24 warning by setting a policy 2022-09-07 16:41:21 +02:00
config.h.cmake Merge 10.5 into 10.6 2022-09-05 10:09:03 +03:00
configure.cmake Revert aligned_alloc() addition from MDEV-28836 2022-08-22 09:10:40 +03:00
CONTRIBUTING.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
COPYING
CREDITS Update contributors 2022-03-23 10:47:27 +11:00
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2022-08-14 23:57:08 -04:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: The open source relational database

MariaDB was designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation and the MariaDB Corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/new-and-old-releases/

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss, MariaDB's Zulip instance, https://mariadb.zulipchat.com/

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

Licensing


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server