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
Eugene Kosov 264a98eaa0 MDEV-8069 DROP or rebuild of a large table may lock up InnoDB
Problematic mutex is dict_sys.mutex.
Idea of the patch: unlink() fd under that mutex while
it's still open. This way unlink() will be fast and
actual file removal will happen on close().
And close() will be called outside of dict_sys.mutex.
This should be safe against crash which may happen between
unlink() and close(): file will be removed by OS anyway.
The same applies to both *nix and Windows.

I created and removed a 4G file on some NVMe SSD on ext4:

write(3, "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"..., 1048576) = 1048576 <0.000519>
fdatasync(3)                            = 0 <3.533763>
close(3)                                = 0 <0.000011>
unlink("file")                          = 0 <0.411563>

write(3, "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"..., 1048576) = 1048576 <0.000520>
fdatasync(3)                            = 0 <3.544938>
unlink("file")                          = 0 <0.000029>
close(3)                                = 0 <0.407057>

Such systems can benefit of this patch.

fil_node_t::detach(): closes fil_node_t but not file handle,
  returns that file handle

fil_node_t::prepare_to_close_or_deatch(): 'closes' fil_node_t

fil_node_t:close_to_free(): new argument detach_handle

fil_system_t::detach(): now can detach file handles

fil_delete_tablespace(): now can detach file handles

row_drop_table_for_mysql(): performs actual file removal
2020-06-10 16:59:07 +03:00
BUILD Fixed that file_key_management works with BUILD scripts 2020-03-24 21:00:03 +02:00
client Merge 10.4 into 10.5 2020-05-18 17:30:02 +03:00
cmake cmake: merge_static_libs - correct duplicate assumptions (#1583) 2020-06-10 13:45:22 +02:00
dbug Merge 10.4 into 10.5 2020-05-05 21:16:22 +03:00
debian MDEV-19917: Install Spider with a simple spider.cnf 2020-06-10 13:45:22 +02:00
Docs Clean up logcheck.ignore.* configs and unify MariaDB.org links with https 2020-04-23 10:07:07 +03:00
extra FreeBSD compilation fixes 2020-06-04 23:52:46 +02:00
include Merge 10.4 into 10.5 2020-06-07 12:22:06 +03:00
libmariadb@ce74fd0c40 update C/C 2020-05-27 15:56:40 +02:00
libmysqld MDEV-22437 make THR_THD* variable thread_local 2020-05-05 18:13:31 +03:00
libservices Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
man MDEV-21303 Make executables MariaDB named 2020-03-21 20:20:29 +01:00
mysql-test MDEV-15053: Adjust results for innodb_page_hash_locks=64 2020-06-10 07:43:28 +03:00
mysys Cleanup - remove HAVE_AIOWAIT and associated code from mysys 2020-06-05 00:16:50 +02:00
mysys_ssl WolfSSL fixes 2020-05-08 12:49:53 +02:00
plugin MDEV-21765 Possibly inconsistent behavior of BIT_xx functions with INET6 field 2020-06-09 12:54:04 +04:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts MDEV-22554: galera_sst_mariabackup fails with "Failed to start mysqld.2" 2020-05-18 12:14:50 +02:00
sql MDEV-22059: MSAN report at replicate_ignore_table_grant 2020-06-10 13:45:22 +02:00
sql-bench Merge 10.4 into 10.5 2019-12-16 07:47:17 +02:00
sql-common Merge 10.4 into 10.5 2020-05-05 21:16:22 +03:00
storage MDEV-8069 DROP or rebuild of a large table may lock up InnoDB 2020-06-10 16:59:07 +03:00
strings Merge 10.4 into 10.5 2020-05-31 10:28:59 +03:00
support-files Merge 10.4 into 10.5 2020-06-07 12:22:06 +03:00
tests Merge 10.4 into 10.5 2020-05-13 14:25:06 +03:00
tpool MDEV-15053 Reduce buf_pool_t::mutex contention 2020-06-05 12:35:46 +03:00
unittest Merge 10.4 into 10.5 2020-05-31 10:28:59 +03:00
vio Merge 10.4 into 10.5 2020-05-05 21:16:22 +03:00
win Merge 10.4 into 10.5 2020-06-06 08:55:22 +03:00
wsrep-lib@d0255569b0 MDEV-22051: Protocol::end_statement(): Assertion `0' failed on Galera node upon DDL attempt with conflicting lock 2020-04-08 16:42:18 +03:00
zlib Fixed compiler warnings from gcc 7.4.1 2020-01-29 23:23:55 +02:00
.clang-format Merge 10.4 into 10.5 2019-12-27 21:17:16 +02:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore cmake: merge_static_libs - correct duplicate assumptions (#1583) 2020-06-10 13:45:22 +02:00
.gitmodules Fix github urls of submodules 2019-07-02 17:25:36 +04:00
.travis.compiler.sh travis: use galera-4 in 10.4 branch (#1226) 2019-03-14 08:20:32 +02:00
.travis.yml MDEV-6284: Sync deb build dependencies and control file with downstream 2020-04-19 17:15:40 +03:00
appveyor.yml Appveyor configuration and addition of badge 2019-05-09 10:56:15 +02:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge 10.4 into 10.5 2020-06-03 09:45:39 +03:00
config.h.cmake Cleanup - remove HAVE_AIOWAIT and associated code from mysys 2020-06-05 00:16:50 +02:00
configure.cmake Cleanup - remove HAVE_AIOWAIT and associated code from mysys 2020-06-05 00:16:50 +02:00
CONTRIBUTING.md Add CONTRIBUTING file and modify README file about live QA regarding new contributors 2018-12-04 23:15:33 +04:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
CREDITS Update contributors 2018-09-10 16:47:44 +04:00
EXCEPTIONS-CLIENT MDEV-5645 MariaDB-5.5.35 - references are made to an "EXCEPTIONS-CLIENT" file but it does not exist 2014-05-31 13:18:56 +02:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
README.md Update README 2020-05-05 18:28:52 +02:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2020-05-12 07:32:03 -04:00

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