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.
Go to file
Monty 7fb9d64989 Changed FLUSH TABLES to not change share version
Part of MDEV-5336 Implement LOCK FOR BACKUP

Originally both table metadata lock and global read lock protection
were acquired before getting TABLE from table cache. This will be
reordered in a future commit with MDL_BACKUP_XXX locks so that we
first take table metadata lock, then get TABLE from table cache, then
acquire analogue of global read lock.

This patch both simplifies FLUSH TABLES code, makes FLUSH TABLES to
lock less and also enables FLUSH TABLES code to be used with backup
locks.

The usage of FLUSH TABLES changes slightly:
- FLUSH TABLES without any arguments will now only close not used tables
  and tables locked by the FLUSH TABLES connection.  All not used table
  shares will be closed.
  Tables locked by the FLUSH TABLES connection will be reopened and
  re-locked after all others has stoped using the table (as before).
  If there was no locked tables, then FLUSH TABLES is instant and will
  not cause any waits.
  FLUSH TABLES will not wait for any in use table.
- FLUSH TABLES with a table list, will ensure that the tables are closed
  before statement returns. The code is now only using MDL locks and not
  table share versions, which simplices the code greatly. One visible
  change is that the server will wait for the end of the transaction that
  are using the tables. Before FLUSH TABLES only waited for the statements
  to end.

Signed-off-by: Monty <monty@mariadb.org>
2018-12-09 22:12:26 +02:00
BUILD Fixed BUILD scripts to by default work with galera and tokudb 2018-12-09 20:49:05 +02:00
client Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
cmake Fixed BUILD scripts to by default work with galera and tokudb 2018-12-09 20:49:05 +02:00
dbug Misc. typos 2018-04-05 15:26:57 +04:00
debian Merge 10.3 into 10.4 2018-11-08 10:19:55 +02:00
Docs Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
extra Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
include Added API for copying aria tables in mariabackup 2018-12-09 22:12:25 +02:00
libmariadb@334964f071 C/C 3.0.7 2018-11-12 11:46:13 +01:00
libmysqld MDEV-17740 Extend EXTRACT(x AS DAY*) to understand long time intervals 2018-11-17 10:14:44 +04:00
libservices Remove compiler warnings 2018-01-30 21:33:56 +02:00
man my_print_defaults: remove --config-file/extra-file 2018-10-31 16:06:15 +01:00
mysql-test Changed FLUSH TABLES to not change share version 2018-12-09 22:12:26 +02:00
mysys Merge 10.3 into 10.4 2018-11-08 10:19:55 +02:00
mysys_ssl Windows : fix broken build with OpenSSL 2018-09-08 20:36:31 +01:00
pcre fix bundled pcre unit tests 2018-08-13 12:14:56 +02:00
plugin Merge 10.3 into 10.4 2018-11-06 16:24:16 +02:00
randgen/conf
scripts MDEV-16991 Rounding vs truncation for TIME, DATETIME, TIMESTAMP 2018-11-26 08:10:47 +04:00
sql Changed FLUSH TABLES to not change share version 2018-12-09 22:12:26 +02:00
sql-bench Added more test to sql-bench 2018-04-30 14:05:27 +03:00
sql-common MDEV-16991 Rounding vs truncation for TIME, DATETIME, TIMESTAMP 2018-11-26 08:10:47 +04:00
storage Optimize flush tables with read lock (FTWRL) to not wait for select's 2018-12-09 22:12:25 +02:00
strings Merge 10.3 into 10.4 2018-11-19 20:22:33 +02:00
support-files Merge 10.3 into 10.4 2018-11-06 16:24:16 +02:00
tests Merge 10.3 into 10.4 2018-10-10 10:36:51 +03:00
unittest Simple cleanups (no logic changes) 2018-12-09 20:49:05 +02:00
vio Merge 10.3 into 10.4 2018-11-08 10:19:55 +02:00
win Merge 10.3 into 10.4 2018-11-19 20:22:33 +02:00
wsrep Prevent building WSREP without INNODB 2018-02-15 15:00:46 +00:00
zlib Merge 10.1 into 10.2 2018-11-06 08:41:48 +02:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Added API for copying aria tables in mariabackup 2018-12-09 22:12:25 +02:00
.gitmodules
.travis.compiler.sh travis: increase ccache size for linux jobs 2018-11-08 18:30:44 +04:00
.travis.yml travis: xcode10.1 2018-11-26 14:34:19 +04:00
appveyor.yml Add some hints for finding bison on its usual locations on Windows. 2018-02-14 17:01:07 +00:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge 10.3 into 10.4 2018-11-06 16:24:16 +02:00
config.h.cmake Merge branch '10.2' into 10.3 2018-09-28 16:37:06 +02:00
configure.cmake Merge 10.2 into 10.3 2018-11-06 09:40:39 +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
COPYING.thirdparty
CREDITS Update contributors 2018-09-10 16:47:44 +04:00
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
README.md Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
VERSION bump the VERSION 2018-11-20 09:04:11 -05:00

Code status:

  • tests status travis-ci.org (10.4 branch)

MariaDB: drop-in replacement for MySQL

MariaDB is 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.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/library/new-and-old-releases/

https://mariadb.org/

As MariaDB is a full replacement of MySQL, the MySQL manual at http://dev.mysql.com/doc is generally applicable.

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss 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.

License


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, COPYING.LESSER, and COPYING.thirdparty files.


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/

Bugs in the MySQL code can also be submitted at: https://bugs.mysql.com

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