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.
  • MariaDB\ 71.8%
  • C++ 16.4%
  • C 10.4%
  • Shell 0.5%
  • Perl 0.4%
  • Other 0.3%
Find a file
Marko Mäkelä e71e613353 MDEV-24671: Replace lock_wait_timeout_task with mysql_cond_timedwait()
lock_wait(): Replaces lock_wait_suspend_thread(). Wait for the lock to
be granted or the transaction to be killed using mysql_cond_timedwait()
or mysql_cond_wait().

lock_wait_end(): Replaces que_thr_end_lock_wait() and
lock_wait_release_thread_if_suspended().

lock_wait_timeout_task: Remove. The operating system kernel will
resume the mysql_cond_timedwait() in lock_wait(). An added benefit
is that innodb_lock_wait_timeout no longer has a 'jitter' of 1 second,
which was caused by this wake-up task waking up only once per second,
and then waking up any threads for which the timeout (which was only
measured in seconds) was exceeded.

innobase_kill_query(): Set trx->error_state=DB_INTERRUPTED,
so that a call trx_is_interrupted(trx) in lock_wait() can be avoided.

We will protect things more consistently with lock_sys.wait_mutex,
which will be moved below lock_sys.mutex in the latching order.

trx_lock_t::cond: Condition variable for !wait_lock, used with
lock_sys.wait_mutex.

srv_slot_t: Remove. Replaced by trx_lock_t::cond,

lock_grant_after_reset(): Merged to to lock_grant().

lock_rec_get_index_name(): Remove.

lock_sys_t: Introduce wait_pending, wait_count, wait_time, wait_time_max
that are protected by wait_mutex.

trx_lock_t::que_state: Remove.

que_thr_state_t: Remove QUE_THR_COMMAND_WAIT, QUE_THR_LOCK_WAIT.

que_thr_t: Remove is_active, start_running(), stop_no_error().

que_fork_t::n_active_thrs, trx_lock_t::n_active_thrs: Remove.
2021-01-27 15:45:39 +02:00
.github
BUILD
client Merge 10.5 into 10.6 2021-01-07 09:08:09 +02:00
cmake Merge 10.5 into 10.6 2021-01-14 16:13:31 +02:00
dbug
debian Merge 10.5 into 10.6 2021-01-14 16:13:31 +02:00
Docs
extra Merge 10.5 into 10.6 2021-01-07 09:08:09 +02:00
include MDEV-515 Reduce InnoDB undo logging for insert into empty table 2021-01-25 18:41:27 +02:00
libmariadb@3cf45a2c57 MDEV-24577: Fix warnings generated during compilation of plugin/auth_pam/testing/pam_mariadb_mtr.c on FreeBSD 2021-01-19 16:08:46 +07:00
libmysqld
libservices Add build on AIX 2020-12-16 08:07:04 +11:00
man -s stands for silent, copy-paste mistake? (#1733) 2021-01-21 18:16:32 +02:00
mysql-test MDEV-20008: Galera strict mode 2021-01-26 14:02:24 +02:00
mysys Merge 10.5 into 10.6 2021-01-25 12:56:30 +02:00
mysys_ssl
plugin MDEV-23959 GSSAPI plugin - support AD or local group name , and SIDs on Windows 2021-01-27 14:38:00 +01:00
randgen/conf
scripts Merge 10.4 into 10.5 2021-01-25 12:44:24 +02:00
sql MDEV-20008: Galera strict mode 2021-01-26 14:02:24 +02:00
sql-bench
sql-common
storage MDEV-24671: Replace lock_wait_timeout_task with mysql_cond_timedwait() 2021-01-27 15:45:39 +02:00
strings
support-files
tests
tpool MDEV-24313 (2 of 2): Silently ignored innodb_use_native_aio=1 2020-12-14 15:27:03 +02:00
unittest
vio
win
wsrep-lib@a93955ddee Update wsrep-lib 2021-01-08 08:44:18 +02:00
zlib Merge branch '10.3' into 10.4 2020-12-25 09:13:28 +01:00
.clang-format
.gitattributes .gitattributes - correct language detection 2021-01-15 18:29:35 +11:00
.gitignore
.gitmodules
.travis.compiler.sh
.travis.yml Merge 10.5 into 10.6 2021-01-07 09:08:09 +02:00
appveyor.yml
BUILD-CMAKE
CMakeLists.txt MDEV-24034 Policy CMP0075 is not set during compile 2020-12-15 12:27:13 +01:00
config.h.cmake
configure.cmake
CONTRIBUTING.md
COPYING
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md
THIRDPARTY
VERSION

Code status:

  • Travis CI status travis-ci.org (10.5 branch)
  • 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/ and the #maria IRC channel on Freenode.

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip and IRC. 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