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ä 13e5c9de80 MDEV-12219 Discard temporary undo logs at transaction commit
Starting with MySQL 5.7, temporary tables in InnoDB are handled
differently from persistent tables. Because temporary tables are
private to a connection, concurrency control and multi-versioning
(MVCC) are not applicable. For performance reasons, purge is
disabled as well. Rollback is supported for temporary tables;
that is why we have the temporary undo logs in the first place.

Because MVCC and purge are disabled for temporary tables, we should
discard all temporary undo logs already at transaction commit,
just like we discard the persistent insert_undo logs. Before this
change, update_undo logs were being preserved.

trx_temp_undo_t: A wrapper for temporary undo logs, comprising
a rollback segment and a single temporary undo log.

trx_rsegs_t::m_noredo: Use trx_temp_undo_t.
(Instead of insert_undo, update_undo, there will be a single undo.)

trx_is_noredo_rseg_updated(), trx_is_rseg_assigned(): Remove.

trx_undo_add_page(): Remove the parameter undo_ptr.
Acquire and release the rollback segment mutex inside the function.

trx_undo_free_last_page(): Remove the parameter trx.

trx_undo_truncate_end(): Remove the parameter trx, and add the
parameter is_temp. Clean up the code a bit.

trx_undo_assign_undo(): Split the parameter undo_ptr into rseg, undo.

trx_undo_commit_cleanup(): Renamed from trx_undo_insert_cleanup().
Replace the parameter undo_ptr with undo.
This will discard the temporary undo or insert_undo log at
commit/rollback.

trx_purge_add_update_undo_to_history(), trx_undo_update_cleanup():
Remove 3 parameters. Always operate on the persistent update_undo.

trx_serialise(): Renamed from trx_serialisation_number_get().

trx_write_serialisation_history(): Simplify the code flow.
If there are no persistent changes, do not update MONITOR_TRX_COMMIT_UNDO.

trx_commit_in_memory(): Simplify the logic, and add assertions.

trx_undo_page_report_modify(): Keep a direct reference to the
persistent update_undo log.

trx_undo_report_row_operation(): Simplify some code.
Always assign TRX_UNDO_INSERT for temporary undo logs.

trx_prepare_low(): Keep only one parameter. Prepare all 3 undo logs.

trx_roll_try_truncate(): Remove the parameter undo_ptr.
Try to truncate all 3 undo logs of the transaction.

trx_roll_pop_top_rec_of_trx_low(): Remove.

trx_roll_pop_top_rec_of_trx(): Remove the redundant parameter
trx->roll_limit. Clear roll_limit when exhausting the undo logs.
Consider all 3 undo logs at once, prioritizing the persistent
undo logs.

row_undo(): Minor cleanup. Let trx_roll_pop_top_rec_of_trx()
reset the trx->roll_limit.
2017-03-13 18:57:17 +02:00
BUILD Cleanups 2017-01-11 09:19:45 +02:00
client Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02:00
cmake MDEV-12125 Use FIND_PACKAGE(OpenSSL) to find openssl 2017-03-08 22:30:03 +00:00
dbug Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02:00
debian MDEV-12096: Fix ln syntax in debian/rules for libmariadb3 symlink creation 2017-03-11 10:54:51 +02:00
Docs Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
extra Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02:00
include Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02: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-10555: Server crashes in mysql_admin_table upon killing ANALYZE 2017-03-13 15:31:12 +01:00
mysys Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02:00
mysys_ssl Fix many -Wconversion warnings. 2017-03-07 19:07:27 +02: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 MDEV-10555: Server crashes in mysql_admin_table upon killing ANALYZE 2017-03-13 15:31:12 +01: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 many -Wconversion warnings. 2017-03-07 19:07:27 +02:00
storage MDEV-12219 Discard temporary undo logs at transaction commit 2017-03-13 18:57:17 +02:00
strings Fix several compile warnings on Windows 2017-03-10 19:07:07 +00:00
support-files Merge branch '10.1' into 10.2 2017-02-10 17:01:45 +01:00
tests fix test for windows 64 2017-03-10 22:44:52 +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 MDEV-12202 Do not package embedded in MSI 2017-03-07 21:22:25 +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: add gcc-4.8 2017-03-07 20:51:08 +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)