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ä ab8199f38e MDEV-12103 Reduce the time of looking for MLOG_CHECKPOINT during crash recovery
This fixes MySQL Bug#80788 in MariaDB 10.2.5.

When I made the InnoDB crash recovery more robust by implementing
WL#7142, I also introduced an extra redo log scan pass that can be
shortened.

This fix will slightly extend the InnoDB redo log format that I
introduced in MySQL 5.7.9 by writing the start LSN of the MLOG_CHECKPOINT
mini-transaction to the end of the log checkpoint page, so that recovery
can jump straight to it without scanning all the preceding redo log.

LOG_CHECKPOINT_END_LSN: At the end of the checkpoint page, the start LSN
of the MLOG_CHECKPOINT mini-transaction. Previously, these bytes were
written as 0.

log_write_checkpoint_info(), log_group_checkpoint(): Add the parameter
end_lsn for writing LOG_CHECKPOINT_END_LSN.

log_checkpoint(): Remember the LSN at which the MLOG_CHECKPOINT
mini-transaction is starting (or at which the redo log ends on
shutdown).

recv_init_crash_recovery(): Remove.

recv_group_scan_log_recs(): Add the parameter checkpoint_lsn.

recv_recovery_from_checkpoint_start(): Read LOG_CHECKPOINT_END_LSN
and if it is set, start the first scan from it instead of the
checkpoint LSN. Improve some messages and remove bogus assertions.

recv_parse_log_recs(): Do not skip DBUG_PRINT("ib_log") for some
file-level redo log records.

recv_parse_or_apply_log_rec_body(): If we have not parsed all redo
log between the checkpoint and the corresponding MLOG_CHECKPOINT
record, defer the check for MLOG_FILE_DELETE or MLOG_FILE_NAME records
to recv_init_crash_recovery_spaces().

recv_init_crash_recovery_spaces(): Refuse recovery if
MLOG_FILE_NAME or MLOG_FILE_DELETE records are missing.
2017-03-03 09:38:59 +02:00
BUILD Cleanups 2017-01-11 09:19:45 +02:00
client Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
cmake MDEV-12056 mysql_config outputs non-existing mysqlclient 2017-02-14 18:07:42 +01:00
dbug MDEV-11611 fix Ninja build 2017-01-29 23:05:10 +01:00
debian MariaDB 10.2 can now start from MySQL 5.7 data directory 2017-02-15 14:09:27 +02:00
Docs Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
extra Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
include Merge branch 'bb-10.2-serg-merge' into 10.2 2017-02-11 09:45:34 +01:00
libmariadb@cae391f7bf update libmariadb, and fix debian packaging for client libs 2016-12-22 10:17:26 +01:00
libmysqld bugfix: mutex order violation in embedded 2017-01-15 07:41:13 +01:00
libservices rename {sys_vars,sql_plugin_services}.h -> *.ic 2015-06-28 12:09:46 +02:00
man Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
mysql-test MDEV-12103 Reduce the time of looking for MLOG_CHECKPOINT during crash recovery 2017-03-03 09:38:59 +02:00
mysys MDEV-10092: Server crashes in in ha_heap::rnd_pos / Table_read_cursor::get_next 2017-02-15 14:09:27 +02:00
mysys_ssl Fix for MDEV-11174: 2017-02-01 12:14:37 +01:00
pcre Merge branch '10.0' into 10.1 2016-06-28 22:01:55 +02:00
plugin Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts MDEV-11170: MariaDB 10.2 cannot start on MySQL 5.7 datadir: 2017-02-14 07:46:58 +02:00
sql whitespace - fix indenting after commit 7450cb7f6 2017-03-01 11:32:18 +04:00
sql-bench fix sql-bench test-table-elimination view leak. see MDEV-10310 for details 2016-07-12 22:21:49 +02:00
sql-common fix the ABI and stop slave hang problem 2016-10-21 13:37:48 +02:00
storage MDEV-12103 Reduce the time of looking for MLOG_CHECKPOINT during crash recovery 2017-03-03 09:38:59 +02:00
strings MDEV-11858 json_merge() concatenates instead of merging. 2017-02-10 01:05:27 +04:00
support-files Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
tests Merge branch '10.1' into 10.2 2016-12-29 13:23:18 +01:00
unittest MDEV-11469 JSON_SEARCH returns incorrect results. 2016-12-09 12:26:32 +04:00
vio Merge branch '10.1' into 10.2 2016-09-09 08:33:08 +02:00
win More verbose output for the Wix linker (light.exe) 2017-02-08 12:19:28 +00:00
wsrep MDEV-8791 - AIX: Unresolved Symbols during linking 2016-10-31 12:18:23 +04:00
zlib Backport from trunk: 2014-05-07 17:09:14 +02:00
.gitattributes Merge branch 'connect/10.1' into 10.1 2016-06-28 22:12:50 +02:00
.gitignore Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
.gitmodules really add a submodule 2016-09-12 17:51:52 +02:00
.travis.yml Travis: parallel_jobs=3 2016-12-17 09:56:21 +04:00
BUILD-CMAKE various documentation updates 2012-06-18 16:57:58 -04:00
CMakeLists.txt MDEV-11708 cmake -DWITH_ASAN no longer works 2017-01-29 23:04:54 +01:00
config.h.cmake MDEV-11195: Correct enablement of NUMA in innodb/xtradb 2016-11-01 11:09:47 +11:00
configure.cmake Merge tag 'mariadb-10.0.29' into 10.0-galera 2017-01-13 13:53:59 -05:00
COPYING Use a new version of "COPYING", the GPL text. 2010-03-04 14:26:27 +01:00
COPYING.LESSER MWL#192: non-blocking client API, after-review fixes. 2012-01-06 12:43:18 +01:00
COPYING.thirdparty split README into the actual README and third-party licenses 2014-05-24 18:23:46 +02:00
CREDITS Update contributors 2016-09-19 12:31:19 +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 various documentation updates 2012-06-18 16:57:58 -04:00
README.md Markdown README for a prettier github representation 2016-08-24 15:00:59 +10:00
VERSION bump the VERSION 2017-02-17 16:23:17 -05:00

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. 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 Foundation and the MariaDB Corporation, 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: http://mariadb.org/ https://mariadb.com/kb/en/ https://mariadb.com/kb/en/mariadb-vs-mysql-features/ https://mariadb.com/kb/en/mariadb-versus-mysql-features/ https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

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.

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 http://mariadb.org/jira

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

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


Code status:

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