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ä f074223ae7 MDEV-32068 Some calls to buf_read_ahead_linear() seem to be useless
The linear read-ahead (enabled by nonzero innodb_read_ahead_threshold)
works best if index leaf pages or undo log pages have been allocated
on adjacent page numbers. The read-ahead is assumed not to be helpful
in other types of page accesses, such as non-leaf index pages.

buf_page_get_low(): Do not invoke buf_page_t::set_accessed(),
buf_page_make_young_if_needed(), or buf_read_ahead_linear().
We will invoke them in those callers of buf_page_get_gen() or
buf_page_get() where it makes sense: the access is not
one-time-on-startup and the page and not going to be freed soon.

btr_copy_blob_prefix(), btr_pcur_move_to_next_page(),
trx_undo_get_prev_rec_from_prev_page(),
trx_undo_get_first_rec(), btr_cur_t::search_leaf(),
btr_cur_t::open_leaf(): Invoke buf_read_ahead_linear().

We will not invoke linear read-ahead in functions that would
essentially allocate or free pages, because pages that are
freshly allocated are expected to be initialized by buf_page_create()
and not read from the data file. Likewise, freeing pages should
not involve accessing any sibling pages, except for freeing
singly-linked lists of BLOB pages.

We will not invoke read-ahead in btr_cur_t::pessimistic_search_leaf()
or in a pessimistic operation of btr_cur_t::open_leaf(), because
it is assumed that pessimistic operations should be preceded by
optimistic operations, which should already have invoked read-ahead.

buf_page_make_young_if_needed(): Invoke also buf_page_t::set_accessed()
and return the result.

btr_cur_nonleaf_make_young(): Like buf_page_make_young_if_needed(),
but do not invoke buf_page_t::set_accessed().

Reviewed by: Vladislav Lesin
Tested by: Matthias Leich
2023-12-05 12:31:29 +02:00
.github Merge 10.5 into 10.6 2023-05-19 14:24:09 +03:00
BUILD Change BUILD scripts to use with-ssl=system 2023-10-03 08:25:31 +03:00
client mysqladmin -vv processlist now shows more information 2023-11-30 18:40:43 +02:00
cmake Merge 10.5 into 10.6 2023-09-19 10:47:26 +03:00
dbug Merge branch '10.6.12' into 10.6 2023-02-06 20:18:44 +01:00
debian MDEV-32689: Remove Ubuntu Bionic from 10.5 2023-11-15 20:52:22 +11:00
Docs Merge 10.4 into 10.5 2022-09-26 13:34:38 +03:00
extra Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
include Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
libmariadb@458a4396b4 update C/C - compilation failure with gcc7 on s390x-sles-12 2023-11-01 12:02:13 +01:00
libmysqld MDEV-32113: utf8mb3_key_col=utf8mb4_value cannot be used for ref 2023-10-19 17:24:30 +03:00
libservices Add build on AIX 2020-12-16 08:07:04 +11:00
man Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
mysql-test Fix occasional failure of encryption.corrupted_during_recovery 2023-12-04 11:21:58 +02:00
mysys Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
mysys_ssl Merge branch '10.4' into 10.5 2023-08-01 11:52:13 +02:00
plugin MDEV-32879 Server crash in my_decimal::operator= or unexpected ER_DUP_ENTRY upon comparison with INET6 and similar types 2023-11-28 07:26:39 +04:00
randgen/conf
scripts Merge 10.5 into 10.6 2023-11-30 10:45:01 +02:00
sql MDEV-32903 MDEV-32532 Assertion failure in ddl_log_increment_phase_no_lock upon .. 2023-12-01 10:27:28 +11: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 2023-08-01 15:08:52 +02:00
storage MDEV-32068 Some calls to buf_read_ahead_linear() seem to be useless 2023-12-05 12:31:29 +02:00
strings Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
support-files Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
tests Merge branch '10.5' into 10.6 2023-11-08 15:57:05 +01:00
tpool Merge 10.5 into 10.6 2023-11-22 16:56:47 +02:00
unittest MDEV-32728: Wrong mutex usage 'LOCK_thd_data' and 'wait_mutex' 2023-11-08 14:50:43 +01:00
vio Merge branch '10.5' into 10.6 2022-11-02 14:33:20 +01:00
win Merge 10.5 into 10.6 2023-09-14 15:25:53 +03:00
wsrep-lib@07af42c052 galera: wsrep-lib submodule update 2023-10-24 05:14:31 +02:00
zlib Merge branch 'zlib v1.3' into 10.4 2023-10-18 20:39:48 +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 2023-08-01 15:08:52 +02:00
.gitlab-ci.yml Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
.gitmodules Merge remote-tracking branch '10.4' into 10.5 2023-03-31 21:32:41 +02:00
appveyor.yml Merge 10.5 into 10.6 2022-07-27 17:52:37 +03:00
BUILD-CMAKE
CMakeLists.txt Merge branch '10.5' into 10.6 2023-09-05 14:44:52 +07:00
config.h.cmake Merge 10.5 into 10.6 2022-10-12 12:14:13 +03:00
configure.cmake Merge 10.5 into 10.6 2023-09-19 10:47:26 +03:00
CONTRIBUTING.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
COPYING
CREDITS CREDITS: re-instate Tencent Cloud 2023-01-25 16:44:26 +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 2023-11-13 13:22:44 -05: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